freeze that doesn't work for Jobs in the subfolder

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

freeze that doesn't work for Jobs in the subfolder

sharmil kumar
Hi,

   In the jenkins-jobs repo I have a few jobs defined in the jobs/subjobs folder. When trying to freeze one of those jobs, they're not selectable in the drop-down list for freezable jobs(example jobs within the subjobs folder) .Jobs that are not in that folder, do appear and are freezable. The folder subjobs itself is available in the drop-down, but running the freeze job on it does not freeze the jobs contained within that

// loop over jobs and list them
import com.cloudbees.hudson.plugins.folder.*
import jenkins.model.*
hudson.model.Hudson.instance.items.collect { it.getName() }.sort()

Would somebody help me to list all the jobs including the jobs within the subjobs folder.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e654fb65-a766-422d-981d-63728d9b5e95%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

freeze that doesn't work for Jobs in the subfolder

James Nord-2
try allItems instead of items

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/02da989c-7fb3-433b-98da-c89dff515383%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: freeze that doesn't work for Jobs in the subfolder

sharmil kumar
tried allitems but it's not working

On Saturday, February 8, 2020 at 7:13:47 AM UTC+5:30, James Nord wrote:
try allItems instead of items

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/255f7cf7-9137-4948-ac87-7924ec9800d9%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: freeze that doesn't work for Jobs in the subfolder

sharmil kumar
In reply to this post by sharmil kumar
Can someone help me on this issue please

On Thursday, February 6, 2020 at 2:55:45 AM UTC+5:30, sharmil kumar wrote:
Hi,

   In the jenkins-jobs repo I have a few jobs defined in the <a href="https://bitbucket.org/Moxiesoft/jenkins-jobs/src/master/bel_jobs/concierge-release-builds/" title="https://bitbucket.org/Moxiesoft/jenkins-jobs/src/master/bel_jobs/concierge-release-builds/" style="font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen,Ubuntu,&quot;Fira Sans&quot;,&quot;Droid Sans&quot;,&quot;Helvetica Neue&quot;,sans-serif;font-size:14px;letter-spacing:-0.07px;white-space:pre-wrap" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fbitbucket.org%2FMoxiesoft%2Fjenkins-jobs%2Fsrc%2Fmaster%2Fbel_jobs%2Fconcierge-release-builds%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWiyACA4B7CxVbT5aTV3vAlewKQQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fbitbucket.org%2FMoxiesoft%2Fjenkins-jobs%2Fsrc%2Fmaster%2Fbel_jobs%2Fconcierge-release-builds%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGWiyACA4B7CxVbT5aTV3vAlewKQQ&#39;;return true;">jobs/subjobs folder. When trying to freeze one of those jobs, they're not selectable in the drop-down list for freezable jobs(example jobs within the subjobs folder) .Jobs that are not in that folder, do appear and are freezable. The folder subjobs itself is available in the drop-down, but running the freeze job on it does not freeze the jobs contained within that

// loop over jobs and list them
import com.cloudbees.hudson.plugins.folder.*
import jenkins.model.*
hudson.model.Hudson.instance.items.collect { it.getName() }.sort()

Would somebody help me to list all the jobs including the jobs within the subjobs folder.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e37e9666-5985-499b-98a6-9edd91551bd9%40googlegroups.com.