Class JenkinsFile
java.lang.Object
com.winchesters.devopsify.service.technologies.jenkins.JenkinsFile
- All Implemented Interfaces:
GeneratedFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerates the content of a dockerfile from a templatereads the template dockerfilefinal void
writes both Jenkinsfile and script.groovyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.winchesters.devopsify.service.technologies.GeneratedFile
writeFile
-
Constructor Details
-
JenkinsFile
public JenkinsFile()
-
-
Method Details
-
writeFile
writes both Jenkinsfile and script.groovy- Specified by:
writeFile
in interfaceGeneratedFile
- Parameters:
path
- the path of the files- Throws:
IOException
- when io exception
-
getFileContent
Description copied from interface:GeneratedFile
generates the content of a dockerfile from a template- Specified by:
getFileContent
in interfaceGeneratedFile
- Returns:
- a string containing the dockerfile content
- Throws:
IOException
- when io exception occurs
-
getGroovyScriptContent
- Throws:
IOException
-
getFileTemplate
Description copied from interface:GeneratedFile
reads the template dockerfile- Specified by:
getFileTemplate
in interfaceGeneratedFile
- Returns:
- the dockerfile template
-
getGroovyScriptTemplate
-