After loading a Pipeline script the job froze and I was unable to stop the
build.
Clicking X had no effect.
Restarting Jenkins had no effect.
Deleting the job had no effect.
A second restart after I deleted the job then the build executor was
emptied.
This is the output I got when loading a second Pipeline script.
[Pipeline] unstash
[Pipeline] load (../../../scriptler/scripts/package-information.groovy)
[Pipeline] load {
[Pipeline] } //load
Aborted by anonymous
Aborted by anonymous
Aborted by anonymous
Aborted by anonymous
Click here to forcibly terminate running steps
Click here to forcibly terminate running steps
Click here to forcibly terminate running steps
Click here to forcibly terminate running steps
My Pipeline script
node('master') {
stage 'Checkout'
checkout([$class: 'GitSCM',
branches: [[name: '${BUILD_BRANCH}']],
browser: [$class: 'GitWeb', repoUrl:
'http://git.company.com/gitweb/?p=domain/projectA.git'],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanBeforeCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[url:
'ssh://[email protected]/domain/projectA.git']]])
stage 'Init'
def packageInformation = load
'../../../scriptler/scripts/package-information.groovy'
def packages = packageInformation.getPackages()
println "Packages " + packages
def buildRequirements = packageInformation.getBuildRequirements()
println "buildRequirements " + buildRequirements
stage 'Prebuild'
println "Prebuild stage"
}
My second Pipeline script I am loading
import java.lang.StringBuilder
def projectName = ""
def packages = new StringBuilder()
def getProjectName() {
projectName
}
def getPacakges() {
packages
}
return this;
If I remove return this; I have no problem running the extra pipeline
script. Code outside any functions defined are run. However I need to
return some values from that script.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e296a9fd-f0bb-4985-99b8-6e556cf42c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.