How can I get the started user inside Jenkins Job even in downstream project?
In jenkins job shell, I want to get the user who starts the build in the shell, how can I do it ?
The Build User Vars Plugin works well if this job was started by user, while it is triggered by others like upstream job, it doesn't work. The value like
$BUILD_USER is empty.
see comments from author "Gavriil" in that page
This is not a bug. Build user could be identified only in case if build was started by user. If build was triggered by other cause, f.e. by timer or by end of upstream job
Though in the job console, actually I can see the user information
Started by upstream project "arctifact2slave" build number 16
originally caused by:
Started by upstream project "create-vm" build number 5
originally caused by:
Started by user larrycai
I've been looking for a new hobby programming project, and I think it would be interesting to dabble in ways to programmatically gather information from websites and then analyze that data to do thing
I want to have the svn revision number that kicked off the parent build available to downstream jobs. Is this possible? I'm using the Build Pipline plugin to manually trigger some downstream jobs.
A little bit stuck on a problem we are having, let me try my best to explain the scenario, issues and what we have tried. We have an SQL job which is logging to a specific file tagged with a date app
I am trying to use jenkins to monitor an external job. One of the optional inputs to the external job is path to a temporary log directory lets (say, the log directory is /tmp/testlog-UUID), where the
I have set the JENKINS_ARGS using /etc/default/jenkins and start jenkins as a daemon with the www-data user. The system info page shows that --prefix=/jenkins is set HOME /var/www HUDSON_HOME /var/jen
I have a project in bitbucket and recently installed jenkins . In jenkins I created a job in jenkins . from New Item, I ticked Freestyle project and did not add anything to the jenkins project . in t
I have a parent job that triggers many downstream jobs dynamically. I use python code to generate the list of jobs to be triggered, write it to a properties file, Inject the file using EnvInject plugi
I'm trying to create an automated build at work using Jenkins. We're using SVN for version control. When a build is successful I would like to send an email to my team saying... Person X has committed
I'm struggling to understand the instructions for my project, english is my second language so can someone help break it down and assist me in how i would go about this project? Project Summary Write
Is it possible put an user control inside a doument viewer? If possible, how will it be that?
Our company uses Skype for communications, and I'd like to be able to send alerts to Skype chatrooms when a Jenkins build fails (and when it recovers too). How can I do this?
I am trying to build a multi-module Maven project using Jenkins. When I build the same project on the command-line using the same environment (variables/settings.xml/user) as Jenkins does, test failur
I aiming to write a perl script in Unix env which triggers a Jenkins build/job by passing the URL for the jenkins master and other parameters. How could this be done? Here are some detailed question
I'm using the Play! WebDrive Module and the jobs run okay but when tests fail the Jenkins job shows 'All tests passed'. I'm trying to wire in test results but I keep running into troubles. I tried usi
What plugins and plugin features do I need to set in order to get my Jenkins job to trigger a build anytime code is committed to a SVN project? I have installed both the standard SVN plugin as well as
Can I use Jenkins XCode Plugin to build an iPad project on Linux System? Only Compile and generate the ipa file for continuous build
I have multiple users running attachemate on a Windows 2003 server. I want to kill attachemate.exe started by user_1 without killing attachemate.exe started by user_2. I want to use VBScript.
Is there any way to get the number of tests that were executed (or passed) in Jenkins in a Post Job Script (for example, to send this number to the Github Status API)?
I have a jenkins job to build my project run tests and then run sonar with sonar jenkins-plugin. but when tests failed sonar analysis skipped.
Hi guys i m making one asp.net project with silverlight2.0 .But i cannot get current user name... how can i get current user name thanks...
The following 'Execute system Groovy script' Build Task updates the build's description to add a button that will submit another Jenkins job which is parameterized: import hudson.model.Cause import hu
I have the following project layout: WAR Project A Upstream Projects Dependency B Dependency C Dependency D I'm looking to setup A so that every time I want to trigger a build, it will first bui
I am using Jenkins CI to test a Java Project. I already wrote my tests and ran them in Eclipse and everything is fine. However, I don't know what to write in the build step in the Jenkins Job. My repo
I have a Jenkins job that takes a source branch name as a parameter. Now I want to schedule the job to run at midnight everyday. As you always need to input the parameter even though the default value
I am stuck at following message in the console: Started by user anonymous Building in workspace C:\Users\myusername\.jenkins\jobs\game-of-life\workspace Checkout:workspace / C:\Users\myusername\.jenki
I am using Jenkins and Ant to execute my Selenium tests. I would like to make a job that would do the following: starts Selenium server executes tests and kills Selenium server after all tests are ru
I have 2 jobs in Jenkins: QA and Dev. In Dev job I checked Build after other projects are built option and set project name = QA so that QA job will be built after Dev job is built. But in my partic
I want to add some new job properties to my job and show the values of those properties in the Jenkins list view. I googled and went over the Jenkins plugins list, but couldn't find any hints. Is ther
Currently I deploy my PHP project using Subversion checkout on the target machine. I use Hudson/Jenkins for testing and code analysis purposes, but can and should it be used for deployment? If so, how
I am experiencing an issue running Jenkins job using slaves. The job is a Maven job, that updates code from svn and then build and run tests, this project runs well in both master and slave as an stan
I want to use the Twitter follow button for site authors on all posts. The Twitter structure is here: <a href=https://twitter.com/twitterapi class=twitter-follow-button data-show-count=false
I am using Jenkins to create a build pipeline, and need to trigger a deployment step in the pipeline. This means a manual process (the build occurs automatically, timed, then stops at the deployment s
I have a Jenkins job which compiles and publishes our Java project to a JBoss server. Obviously, the server takes time to start and deploy the new code. I have a second Jenkins job that runs Selenium
I am using one Jenkins setup/instance to run the smoke tests (i.e using this Jenkins for QA only). Now I have to use another Jenkins job url in my first instance. The purpose is after successful code
I've set up 2 free style jobs, build-app and deploy-app. build-app poll the scm and builds the app, which is Maven based, and install the artifact in a web server (internal repository server), then it
There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewall? I'm looking to write one for the windows platf
We have quite a lot of EC2 instances all being used for various projects. Sometimes, a developer leaves an instance on even though they aren't using it, which wastes money. We have alarms set up to ch
I am interested in learning Perl. I am using Learning Perl books and cpan's web-sites for reference. I am looking forward to do some web/text scraping application using Perl to apply whatever I have l
How to create a subview inside nested view in Jenkins using REST endpoint I tried sending following request by watching what happens when you create a new view under nested view on Jenkins Url: http:/
How can I get the real table name of the entity in EF, even if I modify the name of the entity. I would like to extend a bulk delete feature。
I am interested in creating my own mobile OS. I read that the existing mobile OSes run on ARM processors and use their assembly language, while desktop OSes like Linux and Windows are written in asm.
Is there a way to get the scm git repo url string inside a Jenkins job with groovy?
How can I tell jenkins that the execution of a script failed (to get a red icon)? Should I write something in stderr? Or should I return a non-zero value in script?
Is there any way in jenkins to block a given task on all its downstream tasks? I have a series of functional test phases, and each needs to run against a server after deployment. The server should not
I have many users in Jenkins that have automatically come from SVN. One of our developers left the project and I removed him from the SVN. However, his contacts are not removed from Jenkins and I cann
I have two Jenkins, both are master. Both have 5 salve Jenkins each. I have one job on first jenkins that needs to be cloned for each job. I can clone the job on first jenkins and its slave but not on
Similar to how http://localhost/jenkins/job/job_name/25/api/json would return a JSON object with the details of build 26, is there a way to get a similar object when first initiating the job, i.e., be
I am using the jenkins multijob plugin to execute a number of parallel builds in the same build phase and i want to display the test results in the main multijob project so i select a post-build actio
I need get the name job in this example, I have a code for get the previous value of the build parameter with that code jenkins.model.Jenkins.instance.getItem(nameOfJob).lastBuild.getBuildVariables(