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 voidwrites both Jenkinsfile and script.groovyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
writeFilein interfaceGeneratedFile- Parameters:
path- the path of the files- Throws:
IOException- when io exception
-
getFileContent
Description copied from interface:GeneratedFilegenerates the content of a dockerfile from a template- Specified by:
getFileContentin interfaceGeneratedFile- Returns:
- a string containing the dockerfile content
- Throws:
IOException- when io exception occurs
-
getGroovyScriptContent
- Throws:
IOException
-
getFileTemplate
Description copied from interface:GeneratedFilereads the template dockerfile- Specified by:
getFileTemplatein interfaceGeneratedFile- Returns:
- the dockerfile template
-
getGroovyScriptTemplate
-