Linked Questions

64 votes
18 answers
171k views

I wanted to show the user who triggered a Jenkins job in the post job email. This is possible by using the plugin Build User Vars Plugin and the env variable BUILD_USER. But this variable do not get ...
Musaffir Lp's user avatar
53 votes
3 answers
108k views

I trigger a shell script from Jenkins, This scripts get date and export it as a environment(Linux) variable $DATE. I need to use this $DATE inside same Jenkins job. I made job as parameter build. ...
user3232823's user avatar
  • 1,885
11 votes
4 answers
37k views

I have a project where I need to set an environment variable based on a choice parameter the user chooses. Each project has a theme project dependency. I'd like to have the user choose the project and ...
Marty's user avatar
  • 678
15 votes
2 answers
68k views

I have two scripts in the pre-build step in a Jenkins job, the first one a perl script, the second a system groovy script using the groovy plugin. I need information from the first perl script in my ...
Gogi's user avatar
  • 1,705
10 votes
6 answers
22k views

I am trying to figure out a way to get the remote git project name in a jenkins job as a env variable. I would like to use the project name as the "local subdirectory name" when jenkins clones the ...
arrowill12's user avatar
  • 1,814
6 votes
1 answer
11k views

we're about to wipe our Mac Mini and reinstall new XCode and Jenkins from scratch. We have just recently started using Slack and we would like to use it to receive Jenkins build notifications and to ...
David Jacob's user avatar
1 vote
1 answer
8k views

I'd like to set Jenkins Global Properties - Environment variables via Groovy script (YAML file) which is executed in Ansible. I've tried following import jenkins.* import jenkins.model.* import ...
Tony Montana's user avatar
4 votes
4 answers
6k views

I have a Jenkins build with one parameter called VERSION. Based on the length of the variable i am modifying its value in Windows Powershell and then in the next build step, i want to use it. But ...
wehelpdox's user avatar
  • 603
2 votes
2 answers
4k views

I would like to pass the user id of the person who started a Jenkins job to a script. The output of 'env' indicates no environment variables are set and the output of 'ant -v' indicates no properties ...
Noel Yap's user avatar
  • 19.9k
3 votes
3 answers
3k views

I’m trying to employ the Gradle release plugin on our client’s Jenkins (1.x, so no Jenkinsfile pipelines… 😟). I tested it on my box, and everything is well. However, when I invoke the build job, it ...
Ray's user avatar
  • 3,274
0 votes
2 answers
5k views

I have a couple of jobs both would trigger on Monday but 1 st project on 1st Monday and 2nd project on 2nd Monday. I couldn't use the Jenkins cron to trigger the project based on condition because ...
Magesh's user avatar
  • 308
5 votes
1 answer
3k views

I followed the suggestions from this post on how to use the EnvInject plugin to create and set Jenkins environment variables. I'm using the "Inject environment variables" in post build step and set "...
Alferd Nobel's user avatar
  • 4,159
7 votes
2 answers
2k views

I am using code climate for code quality and test coverage. I have added the gem and code in spec_helper.rb to start the coverage. In the next step code as per the documentation: When you run your ...
Ajeet Khan's user avatar
  • 9,230
2 votes
0 answers
5k views

Bellow command if i write inside a script (test.sh) and execute directly on the specific machine it works. sshpass -p $HOST_PWD sftp testuser@host <<! cd parent mkdir test bye ! But when i try ...
R D's user avatar
  • 1,332
1 vote
1 answer
2k views

I am using an Environment Variable so that that it can be modified and Recipient List will consume that environment variable. So this value is passed as a build parameter: Followed to that I am ...
Exploring's user avatar
  • 3,683

15 30 50 per page