Re: Jenkins Environment Variable

2016-03-19 Thread Christopher Orr
On 14/03/16 16:44, Jayesh Iyer wrote: Hi, I am using jenkins environment variable, i am specifying property something like count=1 the same is present in my build file as I have specified a property file something as C:\Users\myname.i\workspace\Project\application.properties When i

Jenkins Environment Variable

2016-03-14 Thread Jayesh Iyer
Hi, I am using jenkins environment variable, i am specifying property something like count=1 the same is present in my build file as I have specified a property file something as C:\Users\myname.i\workspace\Project\application.properties When i trigger the build, the property file gets

Jenkins environment variable in "execute shell script on report host using ssh"

2016-02-18 Thread Shambhu Sharma
Hi, I am trying to do ssh to a linux machine and run some commands. I am using ssh agent plugin for this. I tried accessing Jenkins environment variable in "execute shell script on report host using ssh", but i am getting "command not found" error for that environment va

Use of Jenkins environment variable in directory path

2013-08-29 Thread TP
I'm relatively new to the Jenkins world and I'm having issues with the use of environment variables. I'm currently running builds from code I check out from a git repository. I inject an environment variable called GIT_BUILD_NUMBER that I pull from the checkout and use it successfully in a

Re: Use of Jenkins environment variable in directory path

2013-08-29 Thread mark_kendzior
Have you tried to use ${GIT_BUILD_NUMBER} instead of %GIT_BUILD_NUMBER%? If you do a SET command in the second Batch command block do you see the GIT_BUILD_NUMBER set? Is it possible to run the commands you need to in the first block where GIT_BUILD_NUMBER appears to be working fine? Thanks

Re: Possibility to get build_status using jenkins environment variable

2012-07-26 Thread Sami Tikka
Go to any Jenkins page. Click to place cursor in browser address bar. Add /api to the URL and hit enter. -- Sami Varghese Renny varghesekre...@gmail.com kirjoitti 25.7.2012 kello 15.02: Can you explain about xml api, whether i needed to install some plugin? my purpose is i am writing an

Re: Possibility to get build_status using jenkins environment variable

2012-07-25 Thread Sami Tikka
Where is the ant task running? In the same build or in a different build? If the ant task is running in the same build, you can assume the build is successful, as it should have aborted if an earlier build step failed. If the tas is running in a different build, you need to fetch the build

Re: Possibility to get build_status using jenkins environment variable

2012-07-25 Thread Varghese Renny
Can you explain about xml api, whether i needed to install some plugin? my purpose is i am writing an task. Using env i can access build_number, build_url but not build_status. So Where i needed to $JENKINS_URL/job/JOB/BUILD/api/xml using GET? Thanks in Advance, varghese

Possibility to get build_status using jenkins environment variable

2012-07-24 Thread Varghese Renny
Hi i want to get build status for using in an ant task. But i am not able to find an environment variable which contains the value of build status.. Please help to get the value of build status? Any comment would be greatly appreciated. Regards, varghese