Package io.jenkins.plugins.swarmcloud
Class SwarmConfigFile
- All Implemented Interfaces:
Describable<SwarmConfigFile>
Configuration for Docker Swarm Configs to be mounted in agent containers.
Docker Configs are similar to Secrets but designed for non-sensitive configuration data.
Format for parsing: configName:targetPath (e.g., nethasp.ini:/opt/1cv8/current/conf/nethasp.ini)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the effective file name.Returns the effective target path for the config.Returns the file mode as a Long, or null if not specified.getGid()getUid()static SwarmConfigFileParses a config string in format "configName:targetPath".voidsetFileMode(String fileMode) voidsetFileName(String fileName) voidvoidsetTargetPath(String targetPath) voidtoString()Returns string representation in format "configName:targetPath".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
SwarmConfigFile
-
-
Method Details
-
parse
Parses a config string in format "configName:targetPath". Example: "nethasp.ini:/opt/1cv8/current/conf/nethasp.ini"- Parameters:
configString- The config string to parse- Returns:
- SwarmConfigFile instance or null if parsing fails
-
getConfigName
-
getTargetPath
-
setTargetPath
-
getFileName
-
setFileName
-
getFileMode
-
setFileMode
-
getUid
-
setUid
-
getGid
-
setGid
-
getEffectiveTargetPath
Returns the effective target path for the config. If target path is not set, defaults to /{configName} -
getEffectiveFileName
Returns the effective file name. Extracts filename from target path if not explicitly set. -
getFileModeAsLong
Returns the file mode as a Long, or null if not specified. -
toString
Returns string representation in format "configName:targetPath".
-