I am new to jenkins and struggling to find out what the below is? The jenkins file for my project has contents similar to the below
stage("Build and push"){
def projectImage = dockerPushAndBuild {
Id = "123456"
image = "abc"
.
.
buildArgs = '-f ./Dockerfile .'
}
deployTheImage {
project = 'Testing'
service = 'MyService'
.
.
}
}
Assuming that on 2nd Line (def projectImage), this script is creating an object, what is the "deployTheImage"? The construct "deployTheImage" doesn't have any "sh" or "bash" or any build/push/deploy commands inside. It simply sets some variables as shown in the sample. Also, I can't find anything called "deployTheImage" in the same file.
I am new to jenkins and just looking for some guidance in setting up a scripted go pipeline. Any references or samples will be greatly appreciated.