[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Daniel Spilker closed an issue as Not A Defect Jenkins / JENKINS-32835 abortAllJobs() for Multijob configured from Job DSL is not working Change By: Daniel Spilker Status: Resolved Closed Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working Thanks Daniel for your time and explanation! Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Daniel Spilker commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working The Gradle Jenkins Plugin has the same limitations as the playground. It does not know which plugin versions are installed in Jenkins, so it can't generate any version specific elements. In version 1.43 of Job DSL, the minimum supported version of the Multijob plugin has been increased, so abortAllJob is no longer a version specific element. So if the Gradle Jenkins Plugin updates to 1.43, the element will be generated. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Daniel Spilker resolved as Not A Defect Jenkins / JENKINS-32835 abortAllJobs() for Multijob configured from Job DSL is not working Change By: Daniel Spilker Status: Open Resolved Resolution: Not A Defect Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser updated an issue Jenkins / JENKINS-32835 abortAllJobs() for Multijob configured from Job DSL is not working Change By: Florian Oeser Environment: Jenkins 1.646Multijob-plugin 1.20jenkins-job-dsl 1.42 gradle-jenkins-plugin 1.3.2 Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser updated an issue Jenkins / JENKINS-32835 abortAllJobs() for Multijob configured from Job DSL is not working Change By: Florian Oeser Labels: gradle-jenkins-plugin job-dsl job-dsl-plugin multi-job multijob Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working Hey Daniel, thanks for your investigation. Well then there's only one more plugin which may cause the issue: The Gradle-Jenkins-Plugin which I'm using to update the Jenkins jobs (defined via DSL). I already looked into the code but I can't see anything which could cause the problem (not applying the 'abortAllJobs' parameter). My minimal example: project(':Test') { apply plugin: "com.terrafolio.jenkins" jenkins { servers { testing { [...] } } defaultServer servers.testing jobs { "MinimalExample"{ type 'Multijob' dsl { steps { phase('Third') { phaseJob('JobA') { abortAllJobs(true) } phaseJob('JobB') phaseJob('JobC') } } } } } } } I'm using the lastest Gradle Jenkins Plugin version 1.3.2 which implicitly uses Job DSL 1.42. Thanks in advice, Florian Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Daniel Spilker commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working I can't reproduce this on 1.42. Can you post a complete (but minimal) script which reproduces the problem? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working Okay then we have an explanation for the Playground but as I wrote in the Environment description I'm using Multijob Plugin 1.20 locally (and Job DSL 1.42) too. Snippet: steps { phase("Compile.") { phaseJob("${buildPrefix}-Compile-FreeBSD-Release") { configure configureAbortingPhaseJob() } phaseJob("${buildPrefix}-Compile-Windows-RelWithDebInfo") { //configure configureAbortingPhaseJob() abortAllJobs(true) } } } leads to this XML for me: "jenkins-multijob-plugin@1.20"> [...] [...] "jenkins-multijob-plugin@1.20"> Compile. wip_mainline-Compile-FreeBSD-Release true true false 0 false false true "empty-list"/> FAILURE false wip_mainline-Compile-Windows-RelWithDebInfo true true false 0 false false false "empty-list"/> FAILURE false SUCCESSFUL [...] Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working Hey Daniel, Well okay...using a higher version seems to fix the problem which obviously leads to the point that you can't reproduce it. Go to the DSL Playgound which uses 1.42 like me and the XML doesn't include the corresponding node When 1.43 get released? Cheers, Florian Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Daniel Spilker commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working The abortAllJob element is only generated when using version 1.14 or later of the Multijob plugin. See https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.step.PhaseJobContext.abortAllJobs and https://github.com/jenkinsci/job-dsl-plugin/blob/job-dsl-1.42/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/step/MultiJobStepContext.groovy#L67. The playground does not have any plugin version information, so it does not generate version specific elements. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Daniel Spilker commented on JENKINS-32835 Re: abortAllJobs() for Multijob configured from Job DSL is not working I can't reproduce this on Jenkins 1.609 with Multijob 1.20 and Job DSL 1.43-SNAPSHOT. My script: multiJob('multijob-example') { steps { phase('PhaseName') { phaseJob('UsingDSLFeature') { abortAllJobs(true) } } } } The generated XML is: false true false false false false PhaseName SUCCESSFUL UsingDSLFeature true true false FAILURE true Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-32835) abortAllJobs() for Multijob configured from Job DSL is not working
Title: Message Title Florian Oeser created an issue Jenkins / JENKINS-32835 abortAllJobs() for Multijob configured from Job DSL is not working Issue Type: Bug Assignee: Daniel Spilker Components: job-dsl-plugin, multijob-plugin Created: 08/Feb/16 2:53 PM Environment: Jenkins 1.646 Multijob-plugin 1.20 jenkins-job-dsl 1.42 Labels: job-dsl job-dsl-plugin multi-job multijob Priority: Minor Reporter: Florian Oeser Hey guys, I'm using the job dsl to configure my jobs. I would like to set the "Abort all other job" option of an phasejob (Multijob) via DSL using the abortAllJobs() function which doesn't work. The corresponding node in the configuration XML persits 'false'. Configuration via the Job DSL's configure block works anyway. phase("PhaseName") {