Yes I did and it did not do anything. A bit cumbersome if I would have to 
enter the build console to cancel again.

onsdag 25. mai 2016 22.47.02 UTC+2 skrev Baptiste Mathus følgende:
>
> Did you try to click on the link in the logs, named "Click here to 
> forcibly terminate running steps"?
>
> 2016-05-24 9:08 GMT+02:00 Sverre Moe <[email protected] <javascript:>>:
>
>> 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']] 
>> <http://[email protected]/domain/projectA.git'%5D%5D>])
>>
>>     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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/e296a9fd-f0bb-4985-99b8-6e556cf42c36%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/e296a9fd-f0bb-4985-99b8-6e556cf42c36%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/81357d27-4f69-40f8-98e6-9e0cdc30dcdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to