Re: [workflow-plugin] How to reference workflow steps in a class?
Should/couldn't you pass this from the base context to your instance method and then do something like ctx.sh in that method (with ctx=this when creating your instance) Le 19 févr. 2015 00:18, Jos Backus j...@catnook.com a écrit : Hi, How does one reference workflow steps like sh and build from inside an instance method? Using them unqualified yields a no method error. Thanks, Jos -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba4ef6ef-80db-4530-b79a-321d518b66ce%40googlegroups.com . 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5TgD%3DSFe2QQoDHqaumVYxwzxBHQ5ZS7V9NLfLuHxiHLA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Concurrent builds in a BuildFlow
HI, I'm not clear on your use case but BuildFlowExtensions[1] contains a block DSL that may help you. The block DSL ensures that only one Run (build) of a particular BuildFlow will execute the steps contained within it concurrently. It further will only allow the most recent FlowRun to proceed if multiple become blocked. It is expected that the blockName will only be used once in a Flow - using the blockname multiple times will work, however the results may not be what the user intended). If the block is not executed then the flow will be aborted. /James [1] https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Extensions+Plugin On Thursday, 19 February 2015 00:36:41 UTC, Jim Adams wrote: I am using the BuildFlow plugin to attempt to sequence a whole bunch of builds. The same build could be queued by different build flow jobs. The problem is that if the different build flow jobs are run at the same time one will fail if the other has already enqueued the job. Is there a way to just simply skip that build? Or wait for it to end without enqueuing it? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba7479fe-0048-4a3d-88c9-51d3d182cfe8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[workflow-plugin] bug? using build parameters to skip builds steps
Hello, I would like to add a build parameter clean which is true by default, but, when false, make the job skip the clean step. Here is my script echo clean: ${clean} node(qisrc) { echo clean: ${clean} if (clean) { sh echo clean } sh echo build } Here is what happens when I build with clean parameter unchecked: Running: Print Message clean: false Running: Allocate node : Start Running on qisrc in /home/jenkins/jenkins/workspace/workflow Running: Allocate node : Body : Start Running: Print Message clean: false Running: Shell Script [workflow] Running shell script + echo clean clean Running: Shell Script [workflow] Running shell script + echo build build Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow Finished: SUCCESS As you can see, the variable clean is false as expected, but the sh echo clean command is ran anyway. Is it expected? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48dbdae4-beae-4004-a44a-5f5ffcd30eeb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jenkins Plugins
Hi all, I do user research for IBM's Bluemix DevOps Services https://hub.jazz.net/, and I'm currently researching Jenkins plugin usage to help prioritize future releases/features. Any responses to the questions below would be much appreciated - 1. What Jenkins plugins are a requirement for use? In other words, you couldn't use Jenkins if they didn't exist. 2. What Jenkins plugins are do you find useful, but aren't necessarily a requirement for use? Thanks in advance for your response! - Chris Kelley User Experience Research Design Bluemix DevOps Services IBM Design -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: Jenkins Plugins
This would be more believable if there were an @ibm.com email address From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Kelley Sent: Thursday, February 19, 2015 2:45 PM To: jenkinsci-users@googlegroups.com Subject: Jenkins Plugins Hi all, I do user research for IBM's Bluemix DevOps Serviceshttps://hub.jazz.net/, and I'm currently researching Jenkins plugin usage to help prioritize future releases/features. Any responses to the questions below would be much appreciated - 1. What Jenkins plugins are a requirement for use? In other words, you couldn't use Jenkins if they didn't exist. 2. What Jenkins plugins are do you find useful, but aren't necessarily a requirement for use? Thanks in advance for your response! - Chris Kelley User Experience Research Design Bluemix DevOps Services IBM Design -- 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 jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4FCF03%40AMERMBX02.PERKINELMER.NET. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins Plugins
Not sure what's so 'unbelievable' about the question originating from a google account - given this is a google group, but for your info - kelleyc [AT] us dot ibm dot com. I'd be more then happy to add it if you can tell me how to use a non-google address with a google group? On Thursday, February 19, 2015 at 3:09:53 PM UTC-5, rginga wrote: This would be more believable if there were an @ibm.com email address *From:* jenkins...@googlegroups.com javascript: [mailto: jenkins...@googlegroups.com javascript:] *On Behalf Of *Chris Kelley *Sent:* Thursday, February 19, 2015 2:45 PM *To:* jenkins...@googlegroups.com javascript: *Subject:* Jenkins Plugins Hi all, I do user research for IBM's Bluemix DevOps Services https://hub.jazz.net/, and I'm currently researching Jenkins plugin usage to help prioritize future releases/features. Any responses to the questions below would be much appreciated - 1. What Jenkins plugins are a requirement for use? In other words, you couldn't use Jenkins if they didn't exist. 2. What Jenkins plugins are do you find useful, but aren't necessarily a requirement for use? Thanks in advance for your response! - Chris Kelley User Experience Research Design Bluemix DevOps Services IBM Design -- 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 jenkinsci-use...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8da96f6e-d205-430a-a977-31bb059130f8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: Jenkins Plugins
I don’t know that answer. Just know 2 things: We get some suspicious emails to this group at times and I am a member without a google address From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Kelley Sent: Thursday, February 19, 2015 3:46 PM To: jenkinsci-users@googlegroups.com Subject: Re: Jenkins Plugins Not sure what's so 'unbelievable' about the question originating from a google account - given this is a google group, but for your info - kelleyc [AT] us dot ibm dot com. I'd be more then happy to add it if you can tell me how to use a non-google address with a google group? On Thursday, February 19, 2015 at 3:09:53 PM UTC-5, rginga wrote: This would be more believable if there were an @ibm.comhttp://ibm.com email address From: jenkins...@googlegroups.comjavascript: [mailto:jenkins...@googlegroups.comjavascript:] On Behalf Of Chris Kelley Sent: Thursday, February 19, 2015 2:45 PM To: jenkins...@googlegroups.comjavascript: Subject: Jenkins Plugins Hi all, I do user research for IBM's Bluemix DevOps Serviceshttps://hub.jazz.net/, and I'm currently researching Jenkins plugin usage to help prioritize future releases/features. Any responses to the questions below would be much appreciated - 1. What Jenkins plugins are a requirement for use? In other words, you couldn't use Jenkins if they didn't exist. 2. What Jenkins plugins are do you find useful, but aren't necessarily a requirement for use? Thanks in advance for your response! - Chris Kelley User Experience Research Design Bluemix DevOps Services IBM Design -- 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 jenkinsci-use...@googlegroups.comjavascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/41e37369-6b98-49fa-992b-f4f8f801d0fd%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8da96f6e-d205-430a-a977-31bb059130f8%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/8da96f6e-d205-430a-a977-31bb059130f8%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4FCF6D%40AMERMBX02.PERKINELMER.NET. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins CI setup on RedHat machine
Hi John, I am getting error as below # sudo wget -O /etc/yum.repos.d/jenkins.repo http://199.193.196.24/redhat/jenkins.repo --11:14:54-- http://199.193.196.24/redhat/jenkins.repo Connecting to 199.193.196.24:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://ci.jenkins-ci.org/redhat/jenkins.repo [following] --11:14:54-- http://ci.jenkins-ci.org/redhat/jenkins.repo Resolving ci.jenkins-ci.org... failed: Name or service not known. Since the domain name is not resolved(not present in hosts file), I am trying to connect with the help of IP Address. It has been resolved(please refer first few lines) and then throwing error at last. Due to this, jenkins.repo is created with '0 kb' as file size. Regards, Mohamed Sathack On Tuesday, 17 February 2015 19:26:58 UTC+5:30, John Mellor wrote: Jenkins is a standard rpm package for RedHat-based distros. Just use yum or dnf to install it normally. It will install an old-style daemon, so run “/etc/init.d/Jenkins start” for the initial startup. Give it 30 seconds (it’s a really slow startup cuz its java under tomcat), and browse to port 8080. Remember to make allowances for /home/Jenkins getting really big. That’s it, you can now prototype. Unless you have a java-based product, you probably want a freestyle project, and call a bash or korn script to do the actual build. Good Luck! *From:* jenkins...@googlegroups.com javascript: [mailto: jenkins...@googlegroups.com javascript:] *On Behalf Of *Mohamed Sathack *Sent:* February-17-15 04:38 *To:* jenkins...@googlegroups.com javascript: *Subject:* Re: Jenkins CI setup on RedHat machine Thanks Richard! On Tuesday, 17 February 2015 13:03:49 UTC+5:30, Richard Bywater wrote: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions ? Richard. On Tue, Feb 17, 2015 at 8:28 PM, Mohamed Sathack ssa...@gmail.com wrote: Hi Everyone, Good Morning! I am exploring various options for CI in our project and came across through Hudson and Jenkins. Initial challenge in front of me is to set up everything in a Unix based mode. We have both Unix/Linux based servers. I need to know Where to start my activity. I have gone through the below link. Jenkins installation and Tomcat configuration has been explained in that link. But I am not sure How to install Jenkins in Unix/Linux machine and which installables I have to use it for installation? For my initial analysis, I will be using Linux machine (RedHat Enterprise Server) https://wiki.jenkins-ci.org/display/JENKINS/JenkinsLinuxStartupScript https://webmail.aolbb.co.uk/owa/redir.aspx?C=6678268973f4475e8f858156e965df1dURL=https%3a%2f%2fwiki.jenkins-ci.org%2fdisplay%2fJENKINS%2fJenkinsLinuxStartupScript Your suggestions are much appreciated!!! Regards, Sathack -- 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 jenkinsci-use...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f3afa3d6-6683-44b4-9bc0-c530150e38cb%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/f3afa3d6-6683-44b4-9bc0-c530150e38cb%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-use...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3d599141-0248-49f7-8fdd-f67ca196d914%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/3d599141-0248-49f7-8fdd-f67ca196d914%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e178b929-5c6a-42c9-912a-e29339d27694%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Groovy build script: What triggered the build
Excellent. I could not find any documentation about this variable. It is not listed among the environment variables of Jenkins. Makes me wonder which other variables are available that could be usefull. When I trigger the build manually in Jenkins I got BUILD_CASE = UPSTREAMTRIGGER When triggered by SCM change BUILD_CAUSE = SCMTRIGGER. When triggered by an downstream project UPSTREAMTRIGGER (a library triggered a build on the app that uses it. So it looks like the BUILD_CAUSE is the same for both manually trigger and triggered by an upstream/downstream project. However I think I could work this that since I would have the same build procedure for both manual and automatic UPSTREAMTRIGGER build. Still would be nice to also have BUILD_CAUSE_BY, user or project. Where do I find a complete list of variables I could use? tirsdag 17. februar 2015 14.21.59 UTC+1 skrev rginga følgende: There is a BUILD_CAUSE environment variable that can have values like: SCMTRIGGER, MANUALTRIGGER, and others *From:* jenkins...@googlegroups.com javascript: [mailto: jenkins...@googlegroups.com javascript:] *On Behalf Of *Sverre Moe *Sent:* Monday, February 16, 2015 7:06 AM *To:* jenkins...@googlegroups.com javascript: *Subject:* Groovy build script: What triggered the build Is it possible to find out who or what triggered the build from a Groovy script? Either an SCM change, another project or user. I have just begun reading a little about Groovy and the Jenkins API. I want to check for the following conditions and build accordingly. if (trigger == scm) { build_with_automake new_version = git tag exist for version if (new_version) { tag new release candidate in Git publish rc } } else if (trigger == Build other projects) { build_with_automake } The project should build on every SCM change, but only tag and publish if version has been increased. It should also build when a build has been triggered by another project. -- 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 jenkinsci-use...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a4a10f09-9846-4c6e-b572-ed5123f0977d%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/a4a10f09-9846-4c6e-b572-ed5123f0977d%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ef08a7f4-380f-40da-bcc3-649188688ee1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Default versioning mode maven-release-plugin problem
Hi, The maven-release-plugin (and the m2release plugin) will not update SNAPSHOT dependencies for you unless they are being released as part of the reactor. They only change the SNAPSHOT versions of modules in the reactor. If you want to change your dependencies then you should be looking at the maven-versions-plugin - which is a question for the Maven users list. /James On Wednesday, 18 February 2015 14:08:52 UTC, lebrame57 wrote: Hi, I encountered an issue that is obstructing my development on Jenkins. After installing the maven-release-plugin on Jenkins I've tested it. The fact is that for a project without any dependencies, the plugin works well. But since I have some project dependencies it doesn't. Indeed after selecting the Default versioning mode as Specify version(s) ,when I save the configuration and try to perform maven release build, the Default versioning mode parameter keeps its state, whatever I change it to and simply goes back to ''none'' state. There is no way to modify it !!! My main goal here is to specify my release version of a dependency and this is what the Default versioning mode is done for because maven-release-plugin can't work with SNAPSHOT dependencies !! Does exist any tips to get around this problem ? an other way to do ? or a fix of the maven-release-plugin ? Thanks for the help -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Default-versioning-mode-maven-release-plugin-problem-tp4739407.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/06a5acbe-688a-4d4b-aa9a-e9ae7d988440%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] bug? using build parameters to skip builds steps
On Thursday, February 19, 2015 at 11:13:08 AM UTC+1, Vincent Latombe wrote: Remember that in groovy if (false) { println(Hello world) } I didn't realize that my Boolean Parameter was actually a variable of type String. That now makes perfect sense, thank you! -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/27691b30-327f-4347-9a68-5b82ade8549e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clearcase HOME
Hi, sorry, the Clearcase plugin isn't compatible with the Clearcase Remote Client (CCRC) (I guess this is what you're calling the thin client). You should install the thick client. Please note that cleartool is only required on Jenkins slaves, not on the master (that is of course, if you are using slaves, if you use master to execute jobs, then you need cleartool on it). Cheers, Vincent 2015-02-19 7:34 GMT+01:00 Mohamed Sathack ssat...@gmail.com: Hi, We are using Clearcase as a SCM in our project. So I installed Clearcase plugins. As of now, I am trying to do the trial through Windows client. There is an option to configure Clearcase related details. There is an configuration variable ClearCase installation and the value must be the location of CLEARCASE_HOME\bin\cleartool . This cleartool will be available only in Thick client, but not in Thin client. So which client has to be installed on my desktop where I am going to run Jenkins. Is it either thick or thin? Once completed the trial stage, I will be doing the same in Linux machine (RHCL). So advise whether I need to follow the same procedure whichever I am going to work out in Windows platform? Like Thick client Regards, Mohamed Sathack -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6f06aa8c-60bc-4532-b7df-8e0cbe50ae9f%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/6f06aa8c-60bc-4532-b7df-8e0cbe50ae9f%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCiMrwBHanr02CwFM%2B1PBrnVSaTNB4tKfzhibAhXJP3vCQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] bug? using build parameters to skip builds steps
Remember that in groovy if (false) { println(Hello world) } will indeed echo Hello world Use if (clean.toBoolean()) { sh echo clean } should work better for you. Vincent 2015-02-19 10:05 GMT+01:00 sebastien.barthel...@gmail.com: Hello, I would like to add a build parameter clean which is true by default, but, when false, make the job skip the clean step. Here is my script echo clean: ${clean} node(qisrc) { echo clean: ${clean} if (clean) { sh echo clean } sh echo build } Here is what happens when I build with clean parameter unchecked: Running: Print Message clean: false Running: Allocate node : Start Running on qisrc in /home/jenkins/jenkins/workspace/workflow Running: Allocate node : Body : Start Running: Print Message clean: false Running: Shell Script [workflow] Running shell script + echo clean clean Running: Shell Script [workflow] Running shell script + echo build build Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow Finished: SUCCESS As you can see, the variable clean is false as expected, but the sh echo clean command is ran anyway. Is it expected? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48dbdae4-beae-4004-a44a-5f5ffcd30eeb%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/48dbdae4-beae-4004-a44a-5f5ffcd30eeb%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCjFWnmG4NCObSQVm%3DruDwwdGdVd4TnZzqa4bnqtSbVGag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: Forcing Post Build Actions as Default Projects settings
There are a variety of ways to limit what anyone that accesses Jenkins can do: https://wiki.jenkins-ci.org/display/JENKINS/Securing+Jenkins From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Russ Sent: Wednesday, February 18, 2015 4:55 PM To: jenkinsci-users@googlegroups.com Subject: Forcing Post Build Actions as Default Projects settings Is it possible to setup Jenkins whereby specific post-build actions are defaulted and turned on. These post build actions, for example would be running a security scan or sonar. Developers could not turn these actions off. Only the Jenkins admin could turn off the post-build actions. -- 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 jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4dee2319-d03c-424b-81a8-3c116ba98223%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/4dee2319-d03c-424b-81a8-3c116ba98223%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4FC7AE%40AMERMBX02.PERKINELMER.NET. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] clean after checkout in GenericSCM step
Hi Timur, I had a similar problem with cloning into another directory. If you look into the config.xml of a job where the GitSCM is used you see something like this: scm class=hudson.plugins.git.GitSCM plugin=git@2.3.4 configVersion2/configVersion userRemoteConfigs hudson.plugins.git.UserRemoteConfig urlhttps://github.com/XX/XX.git'/url /hudson.plugins.git.UserRemoteConfig /userRemoteConfigs branches hudson.plugins.git.BranchSpec name*/master/name /hudson.plugins.git.BranchSpec /branches doGenerateSubmoduleConfigurationsfalse/doGenerateSubmoduleConfigurations submoduleCfg class=list/ *extensions* * hudson.plugins.git.extensions.impl.CleanCheckout/* */extensions* /scm the extension part must be 'translated' to: extensions: [[$class: 'hudson.plugins.git.extensions.impl.CleanCheckout']] So you command should be something like: checkout scm: [$class: 'GitSCM', branches: [[name: '*/master']], extensions: extensions: [[$class: 'hudson.plugins.git.extensions.impl.CleanCheckout']], userRemoteConfigs: [[credentialsId: '4db1f14a-c479-48af-a3ea-da676bc2b051', url: ' https://github.com/XX/XX.git'] https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FXX%2FXX.git%27%255Dsa=Dsntz=1usg=AFQjCNHfEpWmZiLl31HFf02Ge974L47MIg ]] Regards Clifford -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/435e4c7e-43d1-4a2c-879f-f21ae25fa436%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins with Saml 2.0 SSO Authentication
Ben, This is the error being received within the Jenkins log, any ideas? The configuration in Jenkins is correct for the Jenkins URL Thanks, John Feb 17, 2015 8:55:53 AM WARNING org.eclipse.jetty.util.log.JavaUtilLog warn Error while serving http://SERVERNAME.DOMAINNAME.com/securityRealm/finishLogin java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:211) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at
Release Version Maven plugin
Hi, we have a problem with maven releases and maven version plugin. In Jenkins we want to do releases automatically upon pressing a button. To remove snapshot dependencies we want to use the maven versions plugin. Suppose we have two projects A (latest release 0.0.1, latest snapshot 0.0.2-SNAPSHOT) and project B with a dependency on ProjectA - 0.0.2-SNAPSHOT and we want to release project B. How can we upgrade project Bs dependencies to the latest available release version? The maven versions plugin goal use-releases does not change the 0.0.2-SNAPSHOT dependency because there is no 0.0.2 release version of this project. So my question is: how can we automatically remove snapshot dependencies and replace them with the latest available release version in our scenario? -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Release-Version-Maven-plugin-tp4739608.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1424358469893-4739608.post%40n4.nabble.com. For more options, visit https://groups.google.com/d/optout.
Build Flow Plugin questions on how to access defined values
I am new to the build-flow-plugin and have been asked to add some steps to an existing job. While I have a shell script that does this, it was requested that I use the build-flow-plugin instead. I am familiar with Groovy as I use it to access information within jenkins, but the DSL/Groovy build flow plugin confuses me. Can someone explain to me how to grab a value from Jenkins, or a value that is currently being used in existing build-flow, and then go and use it in a later step after everything is completed to execute some action. This is a reduced list of what is currently configured for the existing build flow bParent = build (build_start, TOOL_BRANCH : params['TOOL_BRANCH'], TOOL_CHANGE_NUMBER : params['TOOL_CHANGE_NUMBER'] ) if (bParent.build.properties.environment['TOOL_CHANGE_MERGED'] == 'TRUE') { return 0 } parallel ( {build (update_issue, EnvVarFile : bParent.build.properties.environment['ENV_VAR_FILE']) }, {build (verify_commit_message, EnvVarFile : bParent.build.properties.environment['ENV_VAR_FILE']) } ) My ultimate goal is to clean up after the steps listed above (rm -rf several directories but keep certain directories). I have tried breaking this down to just println a value from Jenkins, and everytime I do this, my script fails. These are the actions I have taken and I included a brief comment about each action. println “${TOOL_BRANCH}” - my parameter from above println “${BUILD_ID}” - Jenkins parameter println “bParent.build.properties.environment['GIT_TREE']” - this is the directory I want to clean up from the ENV_VAR_FILE, however I can use a combination of other values, to obtain the same result Whenever I try anything above or anything similar I get the following error. What am I missing? ERROR: Failed to run DSL Script *groovy.lang.MissingPropertyException* http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException: No such property: TOOL_BRANCH for class: Script1 at *org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)* http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrapentity=method at *org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)* http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getPropertyentity=method at *org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)* http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetPropertyentity=method at *Script1.run(Script1.groovy:42)* http://stacktrace.jenkins-ci.org/search/?query=Script1.runentity=method at Script1$run.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at Script1$run.call(Unknown Source) at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84) at com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219) at hudson.model.Run.execute(Run.java:1665) at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66) -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eb6e8b8a-aaad-4e3a-90c0-75b32eae19f7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Getting errors after removing deleting projects from pipeline
Hi, I am new to jenkins and taking over managing it from a colleague I am running Jenkins 1.570 on ubuntu 12.04lts. I removed a few projects from the pipeline which were no longer needed. I now get the following error: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/home/simuser/.jenkins/war/WEB-INF/lib/jenkins-core-1.570.jar!/hudson/model/View/index.jelly:42:43: st:include org.apache.commons.jelly.JellyTagException: jar:file:/home/simuser/.jenkins/war/WEB-INF/lib/jenkins-core-1.570.jar!/lib/hudson/projectView.jelly:66:22: d:invokeBody null at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:795) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:74) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at
Re: Getting errors after removing deleting projects from pipeline
Try updating the Build Pipeline plugin. It's very fragile when e.g. form fields are left empty. On 19.02.2015, at 22:51, Guruprasad Kulkarni gkulka...@gridcosystems.com wrote: Hi, I am new to jenkins and taking over managing it from a colleague I am running Jenkins 1.570 on ubuntu 12.04lts. I removed a few projects from the pipeline which were no longer needed. I now get the following error: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/home/simuser/.jenkins/war/WEB-INF/lib/jenkins-core-1.570.jar!/hudson/model/View/index.jelly:42:43: st:include org.apache.commons.jelly.JellyTagException: jar:file:/home/simuser/.jenkins/war/WEB-INF/lib/jenkins-core-1.570.jar!/lib/hudson/projectView.jelly:66:22: d:invokeBody null at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:795) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:74) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at
SCM Poll keeps building Jenkins job
Hello Users, I have run into this weird issue on Jenkins since I have upgraded to 1.59 version. Below is some specific information regarding Jenkins system: Jenkins is running behind Tomcat. Jenkins has its own url https://jenkins: . Tomcat server configuration file is modified to add Jenkins URL and has 8443 port for rerouting. Jenkins version: 1.598 Tomcat version: 8.0 ( it is running as Windows service and only used to host Jenkins webapp) Below are Jenkins plugins: Git: 1.5.0 Git-Client: 1.1.2 Git-server: 1.2 Subversion: 1.54 TFS: 3.1.1 We use Team Foundation server as local repository and Jenkins job is set to poll SCM 15minutes. Issue: Regardless of any changes found in SCM, Jenkins keeps building job every 15minutes. I been trying everything but got no luck so far. Please help me to solve this issue. Thank you. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/F833AE701F047A4F93043B579EEC7BE450BE4947%40MSGEXSV21143.ent.wfb.bank.corp. For more options, visit https://groups.google.com/d/optout.
[workflow-plugin] Exit code from sh call
Hi. I've searched quite a bit without an answer. Using the new workflow plugin (Groovy CPS DSL) is it possible to retrieve the exit code from a 'sh' call? If this were a straight bash call via Execute shell script in a Freestyle job, I would just read $? and flow from there. For instance, perhaps I want to take a different action when my return value is 0, or 1, or 2874 (made up obviously), and from there decide if the job succeeded or failed. I can use a 'try/catch' to know that a step failed, but I cannot figure out how to access this exit code. Certainly the worfklow plugin has the exit code becasuse it displays this at the end of the flow. Basically I want to (pseudocode): snip def result = 0 try { sh some command } catch(e) { if (e.exitCode == 3) { // this code is ok, do something interesting } else if (e.exitCode == 4) { // this is bad, set the result result += 1 } } return result snip Therefore, my logic could decide whether or not the workflow failed, not simply whether or not the 'sh' call returned non-zero. Does anyone know how to do this? Thanks a lot. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/135516fb-0cea-46d9-947a-ec5039fe16e1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Intermittent 500 error downloading artifacts
In our environment, we are seeing intermittent 500 errors in the access log when attempting to download artifacts from a job. Jenkins is running on RHEL 6.6 with 4 vCPUs and 8 gigs of RAM. I was wondering if anyone could point me in the direction of what loggers we might be able to use to find out exactly why the 500 error is occuring. I have tried creating a log which uses the following loggers: org.eclipse.jetty - warning severe hudson - warning severe jenkins - warning severe The 500 error out of the access log is pasted below. The user agent appears as Java/1.7.0_05 because we are downloading the artifact with Ant. 192.168.5.87 - - [19/Feb/2015:12:47:48 -0500] GET //job/job-name/133/artifact/artifacts/private_internal/extra/artifact.jar HTTP/1.1 500 27197440 - Java/1.7.0_05 Thanks! -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cded476c-ffa6-4e6e-995a-88526b46064b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] bug? using build parameters to skip builds steps
But isn't that a bug? Why doesn't the surrounding code cast the parameter to a Boolean value, as certainly I would expect? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a5c46e5e-6dec-4736-ba5d-4653f2da7695%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] How to reference workflow steps in a class?
I tried that as I saw someone else suggest that, but I could not get it to work. Then I found somewhere in the Github docs that this doesn't work, presumably because serializing Groovy classes isn't supported. So I ended up using a closure for the effect I was after, and that worked. Thanks for trying to help! -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/471ad690-bb7a-40b2-9cb1-81aba91d64be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Modifying e-mail content
Dear team, I'm trying to get the build result reflected in my e-mail body. I need to get the result of each build step from the log, and put it as the e-mail content. In pre-send script I understand that I need to have a groovy script that serves the purpose. Can anyone help me on this? Thanks, Anitha -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/aec30be4-b15e-4e28-a8d2-ba988f46b088%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] bug? using build parameters to skip builds steps
No, it is how the groovy truth is defined. See http://docs.codehaus.org/display/GROOVY/Groovy+Truth Non-empty strings are coerced to true, even if the value is false. Vincent 2015-02-20 6:11 GMT+01:00 Jos Backus j...@catnook.com: But isn't that a bug? Why doesn't the surrounding code cast the parameter to a Boolean value, as certainly I would expect? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a5c46e5e-6dec-4736-ba5d-4653f2da7695%40googlegroups.com . 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCgFmVSyPLW3VOTtX853N%3D87kJd4VJ7e2Fvb6z1HJDPO2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: Build Flow Plugin questions on how to access defined values
I’m thinking that this: println “${TOOL_BRANCH}” needs to be this: println params[‘TOOL_BRANCH’] what you cannot do is “Create” a new environment or parameter value inside your build-flow and access that outside in a real post-build step. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Katie Outram Sent: Thursday, February 19, 2015 10:43 AM To: jenkinsci-users@googlegroups.com Subject: Build Flow Plugin questions on how to access defined values I am new to the build-flow-plugin and have been asked to add some steps to an existing job. While I have a shell script that does this, it was requested that I use the build-flow-plugin instead. I am familiar with Groovy as I use it to access information within jenkins, but the DSL/Groovy build flow plugin confuses me. Can someone explain to me how to grab a value from Jenkins, or a value that is currently being used in existing build-flow, and then go and use it in a later step after everything is completed to execute some action. This is a reduced list of what is currently configured for the existing build flow bParent = build (build_start, TOOL_BRANCH : params['TOOL_BRANCH'], TOOL_CHANGE_NUMBER : params['TOOL_CHANGE_NUMBER'] ) if (bParent.build.properties.environment['TOOL_CHANGE_MERGED'] == 'TRUE') { return 0 } parallel ( {build (update_issue, EnvVarFile : bParent.build.properties.environment['ENV_VAR_FILE']) }, {build (verify_commit_message, EnvVarFile : bParent.build.properties.environment['ENV_VAR_FILE']) } ) My ultimate goal is to clean up after the steps listed above (rm -rf several directories but keep certain directories). I have tried breaking this down to just println a value from Jenkins, and everytime I do this, my script fails. These are the actions I have taken and I included a brief comment about each action. println “${TOOL_BRANCH}” - my parameter from above println “${BUILD_ID}” - Jenkins parameter println “bParent.build.properties.environment['GIT_TREE']” - this is the directory I want to clean up from the ENV_VAR_FILE, however I can use a combination of other values, to obtain the same result Whenever I try anything above or anything similar I get the following error. What am I missing? ERROR: Failed to run DSL Script groovy.lang.MissingPropertyExceptionhttp://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException: No such property: TOOL_BRANCH for class: Script1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrapentity=method at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getPropertyentity=method at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetPropertyentity=method at Script1.run(Script1.groovy:42)http://stacktrace.jenkins-ci.org/search/?query=Script1.runentity=method at Script1$run.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at Script1$run.call(Unknown Source) at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84) at com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219) at hudson.model.Run.execute(Run.java:1665) at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66) -- 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 jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eb6e8b8a-aaad-4e3a-90c0-75b32eae19f7%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/eb6e8b8a-aaad-4e3a-90c0-75b32eae19f7%40googlegroups.com?utm_medium=emailutm_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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit
Re: Jenkins CI setup on RedHat machine
On Thu, Feb 19, 2015 at 5:17 AM, Mohamed Sathack ssat...@gmail.com wrote: Hi John, I am getting error as below # sudo wget -O /etc/yum.repos.d/jenkins.repo http://199.193.196.24/redhat/jenkins.repo --11:14:54-- http://199.193.196.24/redhat/jenkins.repo Connecting to 199.193.196.24:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://ci.jenkins-ci.org/redhat/jenkins.repo [following] --11:14:54-- http://ci.jenkins-ci.org/redhat/jenkins.repo Resolving ci.jenkins-ci.org... failed: Name or service not known. Since the domain name is not resolved(not present in hosts file), I am trying to connect with the help of IP Address. It has been resolved(please refer first few lines) and then throwing error at last. Due to this, jenkins.repo is created with '0 kb' as file size. Can't you make DNS work on your machine? If not, yum probably isn't going to work even if you get the repo file installed - and you won't be able to do normal yum updates to maintain the machine. Your other option is to download the latest rpm package listed in the 'individual package downloads for RedHat using a machine where DNS works, transfer over to this machine and install with the rpm or yum command. -- Les Mikesell lesmikes...@gmail.com -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAOAgVpwzHcgXpJ0Ke%2BNjU%2BU8rvg%3DQNAvUjUw621xZr_4ybDXhw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Release Version Maven plugin
Hi, as said previously this is a question for the Maven users mailing list. I think one solution could be around using the use-latest with a version range goal instead. Le 19 févr. 2015 16:14, lebrame57 alexis.ol...@esigetel.fr a écrit : Hi, we have a problem with maven releases and maven version plugin. In Jenkins we want to do releases automatically upon pressing a button. To remove snapshot dependencies we want to use the maven versions plugin. Suppose we have two projects A (latest release 0.0.1, latest snapshot 0.0.2-SNAPSHOT) and project B with a dependency on ProjectA - 0.0.2-SNAPSHOT and we want to release project B. How can we upgrade project Bs dependencies to the latest available release version? The maven versions plugin goal use-releases does not change the 0.0.2-SNAPSHOT dependency because there is no 0.0.2 release version of this project. So my question is: how can we automatically remove snapshot dependencies and replace them with the latest available release version in our scenario? -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Release-Version-Maven-plugin-tp4739608.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1424358469893-4739608.post%40n4.nabble.com . 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5jwcoQGd%2BySK%3DL0bbJOnWeD3yJ7Syi%2BhkBpVO8iD02-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.