Move to next phase if perticular job of phase success in multijob plugin
Hi, I have multijob phase having three jobs as follows which runs in parallel. phase 1 job 11 job 12 job 13 Now i wan't to move to phase 2 only if job 11 succeed. I don't care what is result of job 12 or job 13. How to do 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/1f02ad04-0977-4aea-906a-6467c998bd0e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
How to setup default user nad default password for git plugin
Hi, Every time i add new git scm repo, i need to specify which credentials to use. I want the facility to not provide any credentails for repo and instead it should use some default credentails for every git scm repo. Is there any way to do this ? Thanks, Niraj -- 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/6a66a845-8b9f-43d3-85f6-b104c9d0cd47%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Combining surefire reports of multi-job project in one
Hi, I have a multijob project in jenkins. Each individual project creates its own surefire report using maven . So at last, i have 3 surefire reports,as i have three free-style projects in my top multi-job project. Now i want to combile these 3 reports into one aggregate report, so that it will be easy to me to look at it. I am using cobertura and dashboard maven plugin addtionally. This will help me to create the test coverage and dashboard of individual freestyle jenkins project. Is there any way in maven by which i can create a aggregate report from multi-project. Thanks, Niraj -- 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/494f8774-8f4c-405b-a694-593849cafc1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Deleting old builds on nodes
Is your node is Dumb slave node ? On Thursday, May 7, 2015 at 8:16:43 PM UTC+5:30, Dan Sirgey wrote: Hey all, I have a node set up to connect through ssh, that I was surprised to find disk space issues on. I just realized that while I have the discard old builds option checked, this is not cleaning up build folders on the node. I would prefer not to have to use the workspace cleanup plugin, as I'm still developing the flow and would like to be able to inspect the workspaces. Can anyone give me a hand? Jenkins ver. 1.596.1 Master and Slave are both Ubuntu 14.04 -Dan -- 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/ed715392-258d-45a8-81e9-ffdc197e71ca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Is there any plugin for finding the perforce changelist
Hi, We are using perforce as our SCM. We have multiple jenkins projects. When we want to search the perticular changelist number or incident id by using the build has been done, we need to look at builds of each and every project . This is very time consuming. Is there any plugin which will provide me search box to enter the text or changelist number, and then give me result the job name and build number in which that changelist has been sync in workspace or build has been done using that changelist ? Any help will be greatly appreciate . Thanks a ton in advance . -- 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/d24d5436-d4dc-4984-b528-86b464e637d3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Need Help on Jenkins build execution
Hi, You can use the poll SCM option in job configuration. Set the poll time as per your convenience . On Thursday, May 21, 2015 at 10:57:12 AM UTC+5:30, Er. Debasish Dutta wrote: How jenkin will build automatically when ever check in happens to the TFS server. Please help on this. -- 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/c176d928-d1c1-4ca7-a137-46a1708ec308%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Customized contents in Email extension plugin
Hi, Use following : Where file path is relative to workspace. Lets say you have file in $WORKSPACE/myfile, now to mail it use : ${FILE,path=myfile} On Wednesday, May 20, 2015 at 1:48:43 PM UTC+5:30, Mohamed Sathack wrote: Hi, I have a summary report in the form of text file (say, summary.txt). This fill will be hardly having few lines saying the overall status of my execution. I have to use the files contents in the contents section of extended email plugin. Can you please help? 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/23a9250f-5209-4542-9d52-3e59a9f78e95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Groovy scripts
You can start with using jenkins api first. On Monday, May 18, 2015 at 2:24:36 PM UTC+5:30, Gilad Baruchian wrote: I have groovy scripts that work in my jenkins instance. I would like to be able to also run them from IntelliJ, but it seems like i need the jenkins jars for the imports to work (for example import hudson.model.*). 1. How can I get all the Jars I need to run jenkins groovy code? 2. Do you know of any good tutorials to learn about using the jenkins libraries ? 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/d95cd519-e08f-4248-a9e2-77407bea23cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
p4 plugin aborting when running on multiple plugin
Hi, I have shelved changelist and i want to unshelve it before starting build. For this i am using p4 plugin with review and status variable.I have selected run concurrent build option in jenkins job configuration. When i start build it create workspace in root/.jenkins/jobs/sync_build_example/workspace ,and when i start again its parallel build, it creates workspace in root/.jenkins/jobs/sync_build_example/workspace@2 . The first workspace unshelve provided changelist correctly while second run of same job gets aborted. How to support multiple workspace with unshelving facility using p4 plugin ? Any help would be greatly appreciated ? Thanks a ton in advance. -- 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/6edbacc0-f7d9-4d5d-9045-5b290cfdda0a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
plugin to update days to keep build
hi , i need plugin by using i want to change days to keep build of all project at single place,so avoiding me to go and edit each 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALpWO%2BCTxhzHHJkS%2BcPj5xO21ZKLMHL6AAkb7Ezd03RzBxuRew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: perforce nvalid or unset P4PASSWD
We are using ticket based authetication . We cant tell perforce administrator to set timeout limit to unlimitend On Friday, February 27, 2015 at 11:58:16 AM UTC+5:30, JP wrote: By default, the p4 tickets are valid for 12 hours. You can request for unlimited time access to p4 server from your perforce administrator and they should be able to give you one. Thanks, JP On Fri, Feb 27, 2015 at 11:05 AM, niraj nandane niraj@gmail.com javascript: wrote: the p4 commands that we execute in execute shell as a build step are saying invalid or unset P4PASSWD. This is because perforce gives 12 hrs of access to one login using p4 ticket. How you are managing this invalid or unset P4PASSWD error ,that always come after 12 hrs -- 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/a9ed22cf-fae9-47f2-a000-fd1e1130c2c3%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/a9ed22cf-fae9-47f2-a000-fd1e1130c2c3%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/4c1b7ada-9c49-47d3-8eb7-f54d6b712aef%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
perforce nvalid or unset P4PASSWD
the p4 commands that we execute in execute shell as a build step are saying invalid or unset P4PASSWD. This is because perforce gives 12 hrs of access to one login using p4 ticket. How you are managing this invalid or unset P4PASSWD error ,that always come after 12 hrs -- 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/a9ed22cf-fae9-47f2-a000-fd1e1130c2c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
showing chagelist of downstream jobs into top level master job
Hi, I have a multi job in which top level multi job starts downstream job which do checkout from cvs.How to show changelist(changelog.xml) of this downstream jobs into top level project,so i can view all changelog at one place. Thanks, Niraj -- 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/7d0e2a2b-d364-4807-a720-d2fd2f98d5c6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
getting build number of started multijob projects
Hi, I have a multijob in which there are different phases. I need to get the build number of each job which is started during multiphase. How i can get buildnumber of each multiphased job? The jobs which are multiphase may be called by any other project in between. I just want the build number of multiphased job dusing this multiphase job . 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/55a7d338-c729-45ad-a183-cb6c4804d2d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
failing to add slave windows 2012 R2 server
Hi, I am trynig to add windows 2012 R2 server as a slave . I have selected login method as jnlp. When i start jnlp agent on slave,it shows as connecting to master_url and after some time it shows following error message on one pop-up box with ok button. java.io.IOExeception:failed to connect to master_url:55122 at hudson.remoting.Engine.connect(Engine.jav:364), . . .. . Any help would be greatly appreciated. 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/f35dd950-fba0-4beb-ae02-1a9f29cf6e66%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] Error script.sh: command not found when running shell script
See to work all you need to provide bash path in global settings of jenkins as /bin/bash ..try out this... On Dec 2, 2014 9:20 PM, Rupali rupalite...@gmail.com wrote: To debug further, I modified BourneShellScript.java file in DurableTask plugin to print the environment variables with which it is calling the script. I found that environment variables do not contain path to Cygwin as observed in the output. Can this be reason for the error I am seeing? If yes, how to fix that? I have path to Cygwin setup on master and slave nodes thorugh which initial execution gets triggered. Any inputs on this will be highly appreciated. Regards, Rupali On Tuesday, December 2, 2014 6:25:57 PM UTC+5:30, Rupali wrote: Hi, I tried number of options but this is not working. Does Shell script in workflow steps works only on Linux/Unix slaves? Regards, Rupali On Monday, December 1, 2014 5:38:50 PM UTC+5:30, Rupali wrote: HI Ninad, Thank for the reply. But it doesn't work. Thing is, shell execution works well as part of normal Jenkins job, as a build step. But it fails to work when I add it as workflow step. Not sure if workflow plugin has a different way to invoke shell scripts than traditional Jenkins shell script execution. Regards, Rupali On Friday, November 28, 2014 3:09:05 PM UTC+5:30, Rupali wrote: Hi, I tried a simple command in shell script as below: sh 'echo Hello' It gives below error: [D:\Jenkins-Slave\workspace\Setup-WF] Running shell script cygwin warning: MS-DOS style path detected: D:\Jenkins-Slave\workspace\ Setup-WF\.fb8e6a28\pid Preferred POSIX equivalent is: /cygdrive/d/Jenkins-Slave/ workspace/Setup-WF/.fb8e6a28/pid CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames sh: D:\Jenkins-Slave\workspace\Setup-WF\.fb8e6a28\script.sh: command not found Can you please advise what could be wrong here? Regards, Rupali -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/g0s4kSGQn2I/unsubscribe. To unsubscribe from this group and all its topics, 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/08c6d591-fb2c-4303-8474-bbdef892d3a0%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/08c6d591-fb2c-4303-8474-bbdef892d3a0%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/CALpWO%2BBe5Pyw7251WdRj7b3L-BLhbUbW5p8ZUqg9YURhcBC-qA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
RE: checkout perforce modules in new directory
Yes i tried it..what it do simply delete the old folder created as BUILD_ID and created new with latest buildid On Dec 1, 2014 7:36 PM, Ginga, Dick dick.gi...@perkinelmer.com wrote: Did you try to put ${BUILD_ID} in the Workspace (client) field? *From:* jenkinsci-users@googlegroups.com [mailto: jenkinsci-users@googlegroups.com] *On Behalf Of *niraj nandane *Sent:* Monday, December 01, 2014 6:21 AM *To:* jenkinsci-users@googlegroups.com *Subject:* checkout perforce modules in new directory Hi, I am newbie in jenkins. I have a requirement in which i need to checkout perforce module each time in new directory whose name is equal to BUILD_ID. How to achieve this using jenkins and perforce as SCM. Any help would be greatly appreciated. -- 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/d1a08057-00e6-4503-b5d4-e9ffefe20622%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/d1a08057-00e6-4503-b5d4-e9ffefe20622%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 a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/SMRX1O1mVkY/unsubscribe. To unsubscribe from this group and all its topics, 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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4C7C80%40AMERMBX02.PERKINELMER.NET https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4C7C80%40AMERMBX02.PERKINELMER.NET?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/CALpWO%2BCzAOCGyBZKkxsA0NAj0_gda3d0mPTYqzthYn3%3D0i0OTg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
checkout perforce modules in new directory
Hi, I am newbie in jenkins. I have a requirement in which i need to checkout perforce module each time in new directory whose name is equal to BUILD_ID. How to achieve this using jenkins and perforce as SCM. Any help would be greatly appreciated. -- 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/d1a08057-00e6-4503-b5d4-e9ffefe20622%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] Error script.sh: command not found when running shell script
Hi, Install cygpath plugin and write #/bin/bash before echo Hello statement On Friday, November 28, 2014 3:09:05 PM UTC+5:30, Rupali wrote: Hi, I tried a simple command in shell script as below: sh 'echo Hello' It gives below error: [D:\Jenkins-Slave\workspace\Setup-WF] Running shell script cygwin warning: MS-DOS style path detected: D:\Jenkins-Slave\workspace\Setup-WF\.fb8e6a28\pid Preferred POSIX equivalent is: /cygdrive/d/Jenkins-Slave/workspace/Setup-WF/.fb8e6a28/pid CYGWIN environment variable option nodosfilewarning turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames sh: D:\Jenkins-Slave\workspace\Setup-WF\.fb8e6a28\script.sh: command not found Can you please advise what could be wrong here? Regards, Rupali -- 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/f2b43d69-a68b-4618-b28e-6ea24dafe653%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
confirming the build before starting
Hi, I have a parameterized build which accept string as parameter . I want to show user a message empty string in the form of alert box or simply showing Not entered anything.Do you want to continue with continue button below if he click on build button without entering string in text box. If he enters the string then i will start my build . How i can achieve this ? Any help would be greatly appreciated -- 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. For more options, visit https://groups.google.com/d/optout.
Re: confirming the build before starting
Hi, I got one of the stackoverflow link which is doing exactly what i want. But it is not working in my env.Could you please figure out this? http://stackoverflow.com/questions/10865538/how-to-submit-jenkins-job-via-rest-api On Wed, Nov 12, 2014 at 5:46 PM, Felix Nawroth f.nawr...@bigpoint.net wrote: Hi, I don't think this can be easily done. You would need a parameter plugin that runs a validator on its text field, and the validator would have to write Javascript to its error message area. A build run itself is not meant to be inveractive, you can't pause it to query for some kind of user confirmation or any other interaction. So once the build is running you've got to work with what you've got. The only approach I can think of: Preset a default value like CHANGE_ME for you text field and use flashy HTML markup in the parameter description to tell your users to really change the field content. As first build step of your job run a shell or batch step that makes sure that your parameter is different from CHANGE_ME. Here's what I use to protect a deployment job from accidental triggering, with a checkbox parameter for the job: if ! [[ ${CONFIRM_THE_DEPLOYMENT} == true ]] then echo Please confirm your deployment order by setting the checkbox!;echo ; exit 22 fi I generally like the idea - some kind of validated parameter plugin than only enables the build button if all parameters are in their expected ranges, not empty etc. But then again this really is something you would expect your users to take care of themselves. Just make sure to catch all input that might cause damage. Regards, Felix -- *Von:* jenkinsci-users@googlegroups.com [jenkinsci-users@googlegroups.com] im Auftrag von niraj nandane [niraj.nand...@gmail.com] *Gesendet:* Mittwoch, 12. November 2014 11:44 *An:* jenkinsci-users@googlegroups.com *Betreff:* confirming the build before starting Hi, I have a parameterized build which accept string as parameter . I want to show user a message empty string in the form of alert box or simply showing Not entered anything.Do you want to continue with continue button below if he click on build button without entering string in text box. If he enters the string then i will start my build . How i can achieve this ? Any help would be greatly appreciated -- 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. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/wE0j_zojMQY/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: confirming the build before starting
Hi, I got one of the stackoverflow link which is doing exactly what i want. But it is not working in my env.Could you please figure out this? http://stackoverflow.com/questions/10865538/how-to-submit-jenkins-job-via-rest-api On Wednesday, November 12, 2014 5:47:07 PM UTC+5:30, Felix Nawroth wrote: Hi, I don't think this can be easily done. You would need a parameter plugin that runs a validator on its text field, and the validator would have to write Javascript to its error message area. A build run itself is not meant to be inveractive, you can't pause it to query for some kind of user confirmation or any other interaction. So once the build is running you've got to work with what you've got. The only approach I can think of: Preset a default value like CHANGE_ME for you text field and use flashy HTML markup in the parameter description to tell your users to really change the field content. As first build step of your job run a shell or batch step that makes sure that your parameter is different from CHANGE_ME. Here's what I use to protect a deployment job from accidental triggering, with a checkbox parameter for the job: if ! [[ ${CONFIRM_THE_DEPLOYMENT} == true ]] then echo Please confirm your deployment order by setting the checkbox!;echo ; exit 22 fi I generally like the idea - some kind of validated parameter plugin than only enables the build button if all parameters are in their expected ranges, not empty etc. But then again this really is something you would expect your users to take care of themselves. Just make sure to catch all input that might cause damage. Regards, Felix -- *Von:* jenkins...@googlegroups.com javascript: [ jenkins...@googlegroups.com javascript:] im Auftrag von niraj nandane [niraj@gmail.com javascript:] *Gesendet:* Mittwoch, 12. November 2014 11:44 *An:* jenkins...@googlegroups.com javascript: *Betreff:* confirming the build before starting Hi, I have a parameterized build which accept string as parameter . I want to show user a message empty string in the form of alert box or simply showing Not entered anything.Do you want to continue with continue button below if he click on build button without entering string in text box. If he enters the string then i will start my build . How i can achieve this ? Any help would be greatly appreciated -- 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:. 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. For more options, visit https://groups.google.com/d/optout.
Re: confirming the build before starting
Or some link which will decribe what is there did on posted stack overflow link ? On Nov 12, 2014 10:16 PM, niraj nandane niraj.nand...@gmail.com wrote: Could you please post a code to add continue button only ? On Nov 12, 2014 7:07 PM, Craig Phillips iwonbig...@gmail.com wrote: What exactly didn't work about the solution you got from stack overflow? Are you creating a custom web service for submitting the builds from, or perhaps hosting an HTML page on the Jenkins server for this? -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/wE0j_zojMQY/unsubscribe . To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.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. For more options, visit https://groups.google.com/d/optout.
Re: confirming the build before starting
Could you please post a code to add continue button only ? On Nov 12, 2014 7:07 PM, Craig Phillips iwonbig...@gmail.com wrote: What exactly didn't work about the solution you got from stack overflow? Are you creating a custom web service for submitting the builds from, or perhaps hosting an HTML page on the Jenkins server for this? -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/wE0j_zojMQY/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.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. For more options, visit https://groups.google.com/d/optout.
how to run all jobs in parallel using build flow plugin which are stored in string array
Hi, I want to run the jobs in parallel which are stored in string array using build-flow plugin's parallel method. Any help would be greatly appreciated. Thanks, Niraj -- 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. For more options, visit https://groups.google.com/d/optout.
could you please figure out following scenario for ExtendedChoiceParameter plugin ?
Hi, I am using ExtendedChoiceParameter plugin. I am showing five checkbox and depending on the selected checking i am controlling build mechanism in groovy. But problem is if user does not select any checkbox and click on build buttob,i want to show a alert box showing please select at least one project so i can execute my task in right manner. Is there any plugin or help that i want follow to show alert box depending on the condition when i click build button ? Any help would be greatly appreciated. Thanks a ton in advance -- 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. For more options, visit https://groups.google.com/d/optout.
is there plugin for following scenario
Hi All, I need plugin for following sceanrio. When i start a build ,it should provide a checkbox asking custom_build. If i check checkbox then it should allow me to upload files like file parameter. The problem with file parameter is i have to update the project every time . I want it to ask for file path at run time only. -- Thanks and regards Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
how to write goovy script for following sceanrio
I want groovy script for following scenario. 1. I am starting build with string parameterized build . When i run build it will ask me value for that string parameter. Now i want to execute groovy script in build step which will read this passed string parameter . I want to create a a string type variable of same name as of string parameter with value entered by user at run time. 2. My second scenario is as follows. When i will get the name of the string parameter , i will search it in availble list of projects and run that project . 3. My third scenario is as follows. Suppose i was value to string parameter as project1 project2 project3 the space seperated values, then i want to start all the three projects i.e project1 project2 project3 build parallely using groovy script. Any help would be greatly appreciated. Thanks a ton in advance -- Thanks and regards Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
error while copying slave.jar
) at java.lang.Thread.run(Thread.java:744) Caused by: hudson.util.IOException2: Could not copy slave.jar to '/lhome/skhandeb/niraj/slave.jar' on slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1073) ... 7 more Caused by: com.trilead.ssh2.SFTPException: Failure (SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.) at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555) at com.trilead.ssh2.SFTPv3Client.closeHandle(SFTPv3Client.java:271) at com.trilead.ssh2.SFTPv3Client.closeFile(SFTPv3Client.java:1379) at hudson.plugins.sshslaves.SFTPClient$1.close(SFTPClient.java:108) at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1069) ... 7 more [10/27/14 13:35:54] Launch failed - cleaning up connection [10/27/14 13:35:54] [SSH] Connection closed. Jenkins version - 1.579 SSH Slaves plugin http://wiki.jenkins-ci.org/display/JENKINS/SSH+Slaves+plugin - 1.8 jdk version on slave - 1.6.0_16 -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
error while trying to connect linux slave using private/public key
10/24/14 09:47:30] [SSH] Opening SSH connection to hostname:22. [10/24/14 09:47:30] [SSH] Authentication successful. SSH connection reports a garbage before a command execution. Check your .bashrc, .profile, and so on to make sure it is quiet. The received junk text is as follows: stty: standard input: Invalid argument stty: standard input: Invalid argument hudson.AbortException at hudson.plugins.sshslaves.SSHLauncher.verifyNoHeaderJunk(SSHLauncher.java:854) at hudson.plugins.sshslaves.SSHLauncher.access$100(SSHLauncher.java:134) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:698) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:691) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) [10/24/14 09:47:30] Launch failed - cleaning up connection [10/24/14 09:47:30] [SSH] Connection closed. Jenkins version - 1.579 SSH Slaves plugin http://wiki.jenkins-ci.org/display/JENKINS/SSH+Slaves+plugin - 1.8 jdk version on slave - 1.6.0_16 -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
how to execute a shell script in build flow flow dsl section
I have installed Build Flow Plugin and created a build flow project . The commands like build(project-name) are working fine. I want to execute a shell script which is at /root/niraj/muscript.sh ,which build the system. so i am doing like this shell( /root/niraj/muscript.sh) . But it is showing error. Started by user anonymous http://vom-esx6-vm13.samgpunb.symantec.com:8080/user/null ERROR: Failed to run DSL Scriptgroovy.lang.MissingMethodException http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingMethodException: No signature of method: com.cloudbees.plugins.flow.FlowDelegate.shell() is applicable for argument types: (java.lang.String) values: [muscript.sh] can anyone tell me ? its urgent -- 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. For more options, visit https://groups.google.com/d/optout.
ask for files before build
My scenario is as follows.. I checkout the code in scm step. Then before going to build step i want a file opener popup which will read a file on my harddisk and copy into jobs workspace.This will allow me to check the build before checking in the changes in scm repository. I know there is plugin called copy-to-slave but we need to give abolute path instead i want a file opener which will show UI to choose a file. Any help would be greatly appreciated -- 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. For more options, visit https://groups.google.com/d/optout.
Re: how to execute a shell script in build flow flow dsl section
Yeah you are right. I have tried that but problem unnessary it is increasing count of total project. On Wed, Oct 15, 2014 at 5:27 PM, Slide slide.o@gmail.com wrote: I don't think the build flow supports running a shell script directly, you would need to build() a job that executes the shell script. On Wed, Oct 15, 2014 at 2:48 AM, niraj nandane niraj.nand...@gmail.com wrote: I have installed Build Flow Plugin and created a build flow project . The commands like build(project-name) are working fine. I want to execute a shell script which is at /root/niraj/muscript.sh ,which build the system. so i am doing like this shell( /root/niraj/muscript.sh) . But it is showing error. Started by user anonymous http://vom-esx6-vm13.samgpunb.symantec.com:8080/user/null ERROR: Failed to run DSL Scriptgroovy.lang.MissingMethodException http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingMethodException: No signature of method: com.cloudbees.plugins.flow.FlowDelegate.shell() is applicable for argument types: (java.lang.String) values: [muscript.sh] can anyone tell me ? its urgent -- 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. For more options, visit https://groups.google.com/d/optout. -- Website: http://earl-of-code.com -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/DMz2tXSAxlM/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: ask for files before build
Thanks Mark, this can help me but if there could any plugin as my requirement would be great On Wed, Oct 15, 2014 at 6:23 PM, Mark Waite mark.earl.wa...@gmail.com wrote: There isn't a way to prompt for a file to be copied during the build, but maybe you could consider the File parameter from a parameterized build so that the person who starts the job can upload the file as part of starting the job. https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build#ParameterizedBuild-Fileparameter Mark Waite On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane niraj.nand...@gmail.com wrote: My scenario is as follows.. I checkout the code in scm step. Then before going to build step i want a file opener popup which will read a file on my harddisk and copy into jobs workspace.This will allow me to check the build before checking in the changes in scm repository. I know there is plugin called copy-to-slave but we need to give abolute path instead i want a file opener which will show UI to choose a file. Any help would be greatly appreciated -- 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. For more options, visit https://groups.google.com/d/optout. -- Thanks! Mark Waite -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/p7wU_66T76M/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: how to execute a shell script in build flow flow dsl section
Yeah you are right Les but i am new in field of jenkins.Dont know about groovy at all On Wed, Oct 15, 2014 at 6:23 PM, Les Mikesell lesmikes...@gmail.com wrote: On Wed, Oct 15, 2014 at 7:46 AM, niraj nandane niraj.nand...@gmail.com wrote: Yeah you are right. I have tried that but problem unnessary it is increasing count of total project. I think the choices are to use build-flow with separate jobs for every step the dsl doesn't do directly, or use groovy build steps with your own code to do what the dsl functions would have done. -- Les Mikesell lesmikes...@gmail.com -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/DMz2tXSAxlM/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
RE: ask for files before build
Yes i want to check changes before checkin On Oct 15, 2014 6:41 PM, matthew.web...@diamond.ac.uk wrote: You can't prompt for a file in a build step, since at that point there is no user to ask! The jobs is already running. If you want to prompt a user, then the only point it makes sense to do that is when the job is started - Mark's suggestion tells you how to do that. Perhaps you can explain more what you are trying to achieve here. Do you want to test changes before they are checked in? Or something else? What's in the file you want the user to upload? Matthew *From:* niraj nandane [mailto:niraj.nand...@gmail.com] *Sent:* 15 October 2014 14:03 *To:* jenkinsci-users@googlegroups.com *Subject:* Re: ask for files before build Thanks Mark, this can help me but if there could any plugin as my requirement would be great On Wed, Oct 15, 2014 at 6:23 PM, Mark Waite mark.earl.wa...@gmail.com wrote: There isn't a way to prompt for a file to be copied during the build, but maybe you could consider the File parameter from a parameterized build so that the person who starts the job can upload the file as part of starting the job. https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build#ParameterizedBuild-Fileparameter Mark Waite On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane niraj.nand...@gmail.com wrote: My scenario is as follows.. I checkout the code in scm step. Then before going to build step i want a file opener popup which will read a file on my harddisk and copy into jobs workspace.This will allow me to check the build before checking in the changes in scm repository. I know there is plugin called copy-to-slave but we need to give abolute path instead i want a file opener which will show UI to choose a file. Any help would be greatly appreciated -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/p7wU_66T76M/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.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. For more options, visit https://groups.google.com/d/optout.
Re: ask for files before build
Hi Patricia, We are also looking the same solution. Can you please let us know how you have achieved below task: 1. How you are making sandbox=true builds ,which plugins you are using to achieve this? 2.a user can also pick a smaller subset of these tests how you have achieve this? If possible can you share jenkins project snapshots and configuration details. Thanks in advance. On Thu, Oct 16, 2014 at 2:52 AM, Patricia Wright patri...@vmware.com wrote: Here is how we accomplish this. We have a master job that runs all tests. That job gets called one of two ways: We have done this, but it has repercussions for every job out there. It's probably more complicated than you'd think. A high level overview, is that we have a master job that calls all of the tests. This master job is called one of two ways: * the standard revision control polling compile job. (Normal continuous integration) * a user form, where someone can specify the location of the uncommitted changes. we call these sandbox builds the sandbox test job downloads the results of the users changes and injects them into the system with the additional parameters so that we can tell difference between normal tests and sandbox tests. (a user can also pick a smaller subset of these tests) We've done extensive reporting modifications so that jobs with SANDBOX=True as a parameter are ignored as part of normal reporting, and i've set it such that developers do not get emails when 'sandbox job' tests fail - only the submitter of the original sandbox job does instead. We typically use this for major changes to the code base rather than run-of-the mill features and fixes. The other option is to make a second Jenkins environment, but then you have to sync the tests, and have more (virtual) hardware utilization.. Pick your poison. From: jenkinsci-users@googlegroups.com jenkinsci-users@googlegroups.com on behalf of Les Mikesell lesmikes...@gmail.com Sent: Wednesday, October 15, 2014 3:19 PM To: jenkinsci-users Subject: Re: ask for files before build On Wed, Oct 15, 2014 at 1:36 PM, niraj nandane niraj.nand...@gmail.com wrote: Yes i want to check changes before checkin Can't you just do a build on your local machine where you are doing the work? Why does jenkins need to be involved at this point? Or alternatively, why not commit to a branch that won't affect others for a jenkins build and only merge the work if the build succeeds? -- 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. For more options, visit https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optoutk=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0Ar=P%2FDbhm7GMaM%2FtPTZjlK%2F8lebpERVSZcf2B%2BqCod7tGs%3D%0Am=HB4AAmkSIupknPm8QxNq4Q%2FCpcaIbYMUiPHi7aNpAE0%3D%0As=55a38c84d9a3218b0b75b727284f89856bc630ab8cc048fe1abb4ad644140b12 . -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/p7wU_66T76M/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
how to detect wheather job started by upstream project or user has manually started project using groovy
I have one job which i start as a downstream job. I want a groovy script which will detect wheather this job is started as a downstream job or user has started it customly by clicking build now button. Based on that i want to execute another job say abc .Means if current job started as downstream job then do not execute abc otherwise execute abc and wait until it finish -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: sudo: no tty present and no askpass program specified jenkins
Hi, you are right . The user under which i am running jenkins on that slave have all permission that are needed for build. The build gets completed if i go and run script on that slave. But if i run same script through jenkins ,it is showing the error On Mon, Oct 13, 2014 at 2:41 PM, Richard Bywater rich...@byh2o.com wrote: The problem will most likely be that sudo requires (in the default configuration) a password to be entered before sudo commands can be run. The only way to fix this is probably going to be to get the guys who have access to the /etc/sudoers file to allow the user that needs to run the sudo command (i.e. the user under which Jenkins is running) to run a password-less sudo session for either all commands (unlikely I'd imagine) or for the particular commands being run. Richard. On Mon, Oct 13, 2014 at 6:15 PM, niraj nandane niraj.nand...@gmail.com wrote: I have one build machine which have a user abc which is not a root user and have limited sudo access. when I checkout source code and run build script it works fine. The build script contains sudo command for which it does not say sudo: no tty present and no askpass program specified. But when did same thing from jenkins on that build machine added as slave,it shows sudo: no tty present and no askpass program specified. I have got one solution saying comment Default requiretty in /etc/sudoers file. But I don't have access to this file. How I can overcome this problem? -- 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. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/JUpplb7mV3k/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: sudo: no tty present and no askpass program specified jenkins
output of sudo -l (habdbsync) NOPASSWD: ALL, (habdbsync) !/bin/sh, !/bin/ksh, !/bin/csh, !/bin/tcsh, !/bin/zsh, !/bin/bash, (habdbsync) !/bin/su, (habdbsync) !/usr/bin/ssh, !/usr/bin/scp, !/usr/bin/slogin (root) /bin/chown habdbsync /devbuild/* (root) /bin/chown -R root\:root /devbuild/* (root) /bin/chown root\:root /devbuild/* (root) /bin/true On Mon, Oct 13, 2014 at 3:41 PM, Richard Bywater rich...@byh2o.com wrote: Hmm my sudo is a bit rusty - but perhaps you could list the output of sudo -ll which I think will make it a bit easier to read. Also what command/s is the build doing when it gets prompted (and I assume Jenkins is running as the user skhandeb?) Richard. PS Please keep discussions on the list as that way others can jump in and help out if they see the potential issue :) On Mon, Oct 13, 2014 at 11:02 PM, niraj nandane niraj.nand...@gmail.com wrote: Hi, The idea is the buildmachine have access for 3 hrs to build server. When i run build on build machine without using jenkins its get completed and dont ask ever password . The script i run also have sudo stmts. But when we run same script from jenkins its say above error. The output of sudo -l is User skhandeb may run the following commands on this host: (habdbsync) NOPASSWD: ALL, (habdbsync) !/bin/sh, !/bin/ksh, !/bin/csh, !/bin/tcsh, !/bin/zsh, !/bin/bash, (habdbsync) !/bin/su, (habdbsync) !/usr/bin/ssh, !/usr/bin/scp, !/usr/bin/slogin (root) /bin/chown habdbsync /devbuild/* (root) /bin/chown -R root\:root /devbuild/* (root) /bin/chown root\:root /devbuild/* (root) /bin/true -- Thanks and regards-- Niraj Nandane(Vit pune) -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/JUpplb7mV3k/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: sudo: no tty present and no askpass program specified jenkins
sudo -u root chown habdbsync some files This stmt is making above no tty output On Mon, Oct 13, 2014 at 4:33 PM, niraj nandane niraj.nand...@gmail.com wrote: output of sudo -l (habdbsync) NOPASSWD: ALL, (habdbsync) !/bin/sh, !/bin/ksh, !/bin/csh, !/bin/tcsh, !/bin/zsh, !/bin/bash, (habdbsync) !/bin/su, (habdbsync) !/usr/bin/ssh, !/usr/bin/scp, !/usr/bin/slogin (root) /bin/chown habdbsync /devbuild/* (root) /bin/chown -R root\:root /devbuild/* (root) /bin/chown root\:root /devbuild/* (root) /bin/true On Mon, Oct 13, 2014 at 3:41 PM, Richard Bywater rich...@byh2o.com wrote: Hmm my sudo is a bit rusty - but perhaps you could list the output of sudo -ll which I think will make it a bit easier to read. Also what command/s is the build doing when it gets prompted (and I assume Jenkins is running as the user skhandeb?) Richard. PS Please keep discussions on the list as that way others can jump in and help out if they see the potential issue :) On Mon, Oct 13, 2014 at 11:02 PM, niraj nandane niraj.nand...@gmail.com wrote: Hi, The idea is the buildmachine have access for 3 hrs to build server. When i run build on build machine without using jenkins its get completed and dont ask ever password . The script i run also have sudo stmts. But when we run same script from jenkins its say above error. The output of sudo -l is User skhandeb may run the following commands on this host: (habdbsync) NOPASSWD: ALL, (habdbsync) !/bin/sh, !/bin/ksh, !/bin/csh, !/bin/tcsh, !/bin/zsh, !/bin/bash, (habdbsync) !/bin/su, (habdbsync) !/usr/bin/ssh, !/usr/bin/scp, !/usr/bin/slogin (root) /bin/chown habdbsync /devbuild/* (root) /bin/chown -R root\:root /devbuild/* (root) /bin/chown root\:root /devbuild/* (root) /bin/true -- Thanks and regards-- Niraj Nandane(Vit pune) -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/JUpplb7mV3k/unsubscribe . To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Re: sudo: no tty present and no askpass program specified jenkins
Hi All, I got solution for this by using SUDO_ASKPASS program. Thanks, Niraj On Tue, Oct 14, 2014 at 6:21 AM, John D. Ament john.d.am...@gmail.com wrote: are you sure it's NOPASSWD? Seems like you need to turn off require tty in your sudoers file. On Monday, October 13, 2014 4:21:39 PM UTC-4, Jeffrey Parker wrote: That is exactly what the problem is, but the bigger issue is running sudo commands in a script like this is generally bad practice. The more correct way to do it is to make sure that all files are already owned by the correct user or that the user that is running the command has permission to change ownership of those files. On Monday, October 13, 2014 3:15:16 PM UTC-5, Richard Bywater wrote: From my rudimentary knowledge, it doesn't look like NOPASSWD has been specified for running that command and so I'd expect it to prompt for the password (and hence get the issue you are seeing). I could be wrong though as I don't have a setup available to me which has similar sudoers settings :) Richard. On Tue, Oct 14, 2014 at 12:05 AM, niraj nandane niraj@gmail.com wrote: sudo -u root chown habdbsync some files This stmt is making above no tty output On Mon, Oct 13, 2014 at 4:33 PM, niraj nandane niraj@gmail.com wrote: output of sudo -l (habdbsync) NOPASSWD: ALL, (habdbsync) !/bin/sh, !/bin/ksh, !/bin/csh, !/bin/tcsh, !/bin/zsh, !/bin/bash, (habdbsync) !/bin/su, (habdbsync) !/usr/bin/ssh, !/usr/bin/scp, !/usr/bin/slogin (root) /bin/chown habdbsync /devbuild/* (root) /bin/chown -R root\:root /devbuild/* (root) /bin/chown root\:root /devbuild/* (root) /bin/true On Mon, Oct 13, 2014 at 3:41 PM, Richard Bywater ric...@byh2o.com wrote: Hmm my sudo is a bit rusty - but perhaps you could list the output of sudo -ll which I think will make it a bit easier to read. Also what command/s is the build doing when it gets prompted (and I assume Jenkins is running as the user skhandeb?) Richard. PS Please keep discussions on the list as that way others can jump in and help out if they see the potential issue :) On Mon, Oct 13, 2014 at 11:02 PM, niraj nandane niraj@gmail.com wrote: Hi, The idea is the buildmachine have access for 3 hrs to build server. When i run build on build machine without using jenkins its get completed and dont ask ever password . The script i run also have sudo stmts. But when we run same script from jenkins its say above error. The output of sudo -l is User skhandeb may run the following commands on this host: (habdbsync) NOPASSWD: ALL, (habdbsync) !/bin/sh, !/bin/ksh, !/bin/csh, !/bin/tcsh, !/bin/zsh, !/bin/bash, (habdbsync) !/bin/su, (habdbsync) !/usr/bin/ssh, !/usr/bin/scp, !/usr/bin/slogin (root) /bin/chown habdbsync /devbuild/* (root) /bin/chown -R root\:root /devbuild/* (root) /bin/chown root\:root /devbuild/* (root) /bin/true -- Thanks and regards-- Niraj Nandane(Vit pune) -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/ topic/jenkinsci-users/JUpplb7mV3k/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/JUpplb7mV3k/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
Can anyone help me for following scenario
I have one master machine and 10 slave machines. I want to build my source code for all this slave machine.Currently all 10 machines and master are nfs mounted . I want to checkout my source code from cvs on master and use that for different platforms.For achieving this i have created 10 free style jobs for individual platforms which have only the buld step. And one multi job which will fire all platform (10 ) build.But current problem is when i start multi job its checkout source code from cvs and hence works fine. But if when i try to run individual slave job , it does not checkout source code as it have only build step. How i can tell jenkins to checkout source code for individual slave free style job . -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
skipping scm step on condition in jenkins
i want to implement a project in which i should be able to checkout a code based on some condtion.say checking of timestamp or environment variable. Can anyone help me . -- Thanks and regards-- Niraj Nandane(Vit pune) -- 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. For more options, visit https://groups.google.com/d/optout.
sudo: no tty present and no askpass program specified jenkins
I have one build machine which have a user abc which is not a root user and have limited sudo access. when I checkout source code and run build script it works fine. The build script contains sudo command for which it does not say sudo: no tty present and no askpass program specified. But when did same thing from jenkins on that build machine added as slave,it shows sudo: no tty present and no askpass program specified. I have got one solution saying comment Default requiretty in /etc/sudoers file. But I don’t have access to this file. How I can overcome this problem? -- 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. For more options, visit https://groups.google.com/d/optout.