Re: GitHub Branch Source Plugin "trusted" pull request property in Jenkinsfile?

2019-03-04 Thread Brian J. Murrell
On Mon, 2019-03-04 at 15:28 +0100, Baptiste Mathus wrote: > This seems like a useful thing. I would recommend filing an issue in > https://issues.jenkins-ci.org/secure/Dashboard.jspa describing your > goal > and use case (after having checked it's not already filed, that is, > goes > without saying

GitHub Branch Source Plugin "trusted" pull request property in Jenkinsfile?

2019-02-20 Thread Brian J. Murrell
Hi. Is the "trusted" property of a GitHub pull request (i.e. the Trust field in "Discover pull requests from forks" in the GitHub Organization configuration screen) available to a Jenkinsfile in any way? I would like to have my Jenkinsfile behave differently based on whether the PR from a fork is

original git sha when git[hub] commit is merged with master

2019-02-13 Thread Brian J. Murrell
Using the multibranch source plugin with github and pipelines, I notice that the commit from the github PR will sometimes be merged with remotes/origin/master and that merge commit is what GIT_COMMIT is set to which is what built and tested. I.e.: > git fetch --no-tags --progress https://github.

Re: Incorrect visualisation of pipeline with failed stage

2019-01-16 Thread Brian J. Murrell
On Wed, 2019-01-16 at 01:22 -0800, Vitaly Karasik wrote: > I'm using Jenkins 2.151 with declarative pipeline. This pipeline has > a few > stages. > If one of stages failed, Jenkins classic UI (unlike BlueOcean) shows > all > following steps as failed, even they weren't executed at all - see > at

Re: fetch the api key for the current user?

2016-02-01 Thread Brian J. Murrell
On Mon, 2016-02-01 at 13:24 -0800, milki milk wrote: >  > The security part comes in when you fetch an arbitrary user's key I never ever said fetch an *arbitrary* user's key.  I said a job run as user Bob would fetch the key of the user (again, Bob) who ran it, who has to be already logged into J

Re: fetch the api key for the current user?

2016-02-01 Thread Brian J. Murrell
On Sun, 2016-01-31 at 23:45 +0100, Daniel Beck wrote: > On 30.01.2016, at 19:10, Brian J. Murrell c...@public.gmane.org> wrote: > > > I am looking for a REST API handle to get the API key of the user > > that > > ran a job. > > I think any answer to this wou

fetch the api key for the current user?

2016-01-30 Thread Brian J. Murrell
I am looking for a REST API handle to get the API key of the user that ran a job. That is, within the build steps of a job, I want to get the API key of the user running the job to use to authenticate to jenkins to carry out other activities within the job.  In particular I want to use it to fetch

How to enable JMX with Jenkins?

2015-04-11 Thread Brian J. Murrell
Hi. I would like to enable JMX with the Jenkins Java process but I seem to get errors such as the following when I add any of the JMX options to the "$JENKINS_ARGS" on a Linux machine startup: Running from: /usr/lib/jenkins/jenkins.war Exception in thread "main" java.lang.reflect.InvocationTarget

Re: java process consumes up to 200% CPU while using the UI

2015-04-11 Thread Brian J. Murrell
On Fri, 2015-04-10 at 11:31 -0400, Brent Atkinson wrote: > > You're right, but connecting locally should not require the remote ports > bound, No. You are right about that. But the problem is that the complaint is not isolated to the JMX report options. *Any* JMX option yields a complaint abou

Executor #0 for el6-builder1 is going to execute null

2013-10-08 Thread Brian J. Murrell
On 13-10-07 12:35 PM, Brian J. Murrell wrote: I'm trying to get an instance of Jenkins 1.530+current versions of plugins up and running but when I try to execute a multi-configuration (a.k.a. matrix) job, the child jobs are failing with: Triggering x86_64,el5 Triggering x86_64,el6.4 x86_6

Re: SEVERE: Executor threw an exception

2013-10-08 Thread Brian J. Murrell
On 13-10-07 12:35 PM, Brian J. Murrell wrote: I'm trying to get an instance of Jenkins 1.530+current versions of plugins up and running but when I try to execute a multi-configuration (a.k.a. matrix) job, the child jobs are failing with: Triggering x86_64,el5 Triggering x86_64,el6.4 x86_6

SEVERE: Executor threw an exception

2013-10-07 Thread Brian J. Murrell
I'm trying to get an instance of Jenkins 1.530+current versions of plugins up and running but when I try to execute a multi-configuration (a.k.a. matrix) job, the child jobs are failing with: Triggering x86_64,el5 Triggering x86_64,el6.4 x86_64,el5 appears to be cancelled x86_64,el5 completed w

ldap: using uid to bind instead of cn

2013-09-16 Thread Brian J. Murrell
It would seem that when using the LDAP authentication plugin that the bind attempt to the LDAP server to verify the user credentials is trying to bind using the CN DN. Our LDAP server (AD) is configured to allow binding using the e-mail address of the user rather than their CN (easier to remem

Re: Execute Clean Up on Build Cancel

2013-05-02 Thread Brian J. Murrell
On 13-05-02 09:36 PM, Eric Blom wrote: > > trap "/home/jenkins/tmp/cleanup.sh" INT TERM There is also the "EXIT" pseudo-signal available in bash. > On the command line I'm testing with Ctrl+C (INT). Based on the webpage below > I believe SIGTERM (TERM) should work for Jenkins' cancel button Ye

Re: Role based Authorization for “Logged in user can do anything” in Jenkins

2013-01-12 Thread Brian J. Murrell
On 13-01-12 09:52 AM, uma shankar wrote: > > Summarize the question: I actually want to add group of user who will be > admin, Other than that, if any user try to login, they should still be > able to login (if authentication is success via LDAP) but they should only > have build trigger and r

use tags instead of build numbers in URLs

2013-01-11 Thread Brian J. Murrell
Anyone know of any way or plugin that allows the use of tag names in Jenkins URLs rather than build numbers. i.e. if I have a job named "foo", I can get build #10's result for it with: http://jenkins/job/foo/10/ But if I've set a tag for that build as "1.2.4" I'd like to be able to use: http://

Re: JNLP slave no longer works

2013-01-11 Thread Brian J. Murrell
On 13-01-11 08:44 AM, Les Mikesell wrote: > > Doesn't the connecting node name already have to be configured in > jenkins Sure. But if anonymous read is allowed, anyone can see the node names. > - and not already connected? Is disconnecting a node really that difficult? You could try attackin

Re: JNLP slave no longer works

2013-01-11 Thread Brian J. Murrell
On 13-01-11 05:55 AM, matthew.web...@diamond.ac.uk wrote: > > Fixed by going to Manage Jenkins -> Configure Global Security, and under > Project-based Matrix Authorization Strategy I had to enable “connect” in the > “slave” section, for user “Anonymous”. IIUC, that's going to leave your Jenkin

Re: JNLP slave no longer works

2013-01-11 Thread Brian J. Murrell
On 13-01-11 07:58 AM, SBreitbach wrote: > The slave.jar from LTS 1.480.2 version has parameters "-auth" and > "-jnlpCredentials". I discovered that the -auth in 1.498 also doesn't work. I grabbed the packets that the slave was sending to the jenkins server on connect and there is absolutely no a

gerrit trigger build on push to refs/heads/*?

2013-01-11 Thread Brian J. Murrell
Hi, I wonder if there is any way to configure the gerrit trigger to trigger builds on pushes to refs/heads/* as was as the usual refs/for/*. Cheers, b. signature.asc Description: OpenPGP digital signature

Re: Send over ftp only changed scm files

2012-06-12 Thread Brian J. Murrell
On 12-06-12 02:10 PM, Roy wrote: > There are some way to do that? > > I'm trying to do find some plugin or solution since yesterday. > Can someone help me? I don't know about anyone else but I don't think I really understand what it is you want. b. signature.asc Description: OpenPGP digital

Re: user defined axis

2012-06-07 Thread Brian J. Murrell
On 12-06-07 07:59 AM, Arun Kumar wrote: > But my problem i am not able to execute the above code step. Right. I wasn't saying it was possible. I was saying that I have an RFE open to allow the parent job to define the axis combinations to build. Either by build steps (my use-case) or by passing

refer to jobs by something other than their build number -- like an alias or tag

2012-06-07 Thread Brian J. Murrell
I have a need to be able to refer to build jobs by something other than their build number. To be perfectly clear, I want to be able to access a particular job's artifacts but I might not know the number of the job. I would know a "tag" or "alias" for it though. Given for example a URL on my jen

Re: user defined axis

2012-06-07 Thread Brian J. Murrell
On 12-06-07 07:06 AM, Arun Kumar wrote: > Hi Brian, > > My requirement is like the variable value i give may differ everytime i > execute the job. Like i may give "fruits=apple banana coconut" one time and > next time it will be different value. So i want to take that as a variable > to inject

Re: user defined axis

2012-06-06 Thread Brian J. Murrell
On 12-06-05 05:50 AM, Arun Kumar wrote: > Hi, Hi, > *Parameters:* > * > * > fruits=apple banana coconut > > Configuration Matrix : User-defined Axis > Name : PRODUCTS > Values : $fruits > Build > Execute shell > Command : build ${PRODUCT} Do you mean something along the lines of thi

preventing use of certain nodes in matrix jobs

2012-04-17 Thread Brian J. Murrell
I have my builders labeled with labels like: builder1: x86_64 el6 builder2: x86_64 el5 builder3: i686 el6 builder4: i686 el5 I then make matrix-build jobs that have axes (called "arch" and "distro", respectively) for x86_64/i686 and el5/el6 and then let jenkins figure out which nodes to run the m

Re: Promoted Builds Plugin: Does not automatically promote despite qualifications being met

2012-04-13 Thread Brian J. Murrell
On 12-04-12 02:29 PM, Nicky Ramone wrote: > > Another problem I'm having is that when you manually promote a build that > triggers a downstream build, the triggered downstream build does not > include information from the upstream project, which is a big problem. Yes, I agree. I posted a messag

serializing actions in a promotion process

2012-04-12 Thread Brian J. Murrell
I have a promotion configuration using the Promoted Builds Plugin. This configuration includes the building of two other jobs in it's Actions list, specifically two "Trigger parameterized build on other projects" items. These seem to happen in parallel though and I would like to force them to hap

Re: how to get access to the data for the job being promoted?

2012-04-12 Thread Brian J. Murrell
On 12-04-10 04:54 PM, Sami Tikka wrote: > You do not exactly come clean on what kind of "data" it is you are looking > for. Well, specifically, I was looking to know in the executed job which job was being promoted. > If you want access to promoted build artifacts, Copy Artifacts plugin > gives

Re: how to get access to the data for the job being promoted?

2012-04-10 Thread Brian J. Murrell
On 12-04-10 11:44 AM, Brian J. Murrell wrote: > Using the Promoted Builds Plugin, I'm choosing to execute another job as > an action of the promotion. How do I get information on the job and > build that's being promoted in the job steps of the job that the > promotion

access the latest promoted job similar to "lastSuccessful"?

2012-04-10 Thread Brian J. Murrell
In the same way that I can access a job (with it's log and artifacts, etc.) through the "lastSuccessfulBuild" alias (i.e. http://localhost:8080/job/foo/lastSuccessfulBuild/arch=x86_64,distro=el6/), is there any similar type aliases to get to the last job that was promoted with a given promotion nam

how to get access to the data for the job being promoted?

2012-04-10 Thread Brian J. Murrell
Using the Promoted Builds Plugin, I'm choosing to execute another job as an action of the promotion. How do I get information on the job and build that's being promoted in the job steps of the job that the promotion action starts? I've dumped the environment in the job steps of the job the action

Promoted Builds Plugin: promote downstream jobs also

2012-04-09 Thread Brian J. Murrell
I am using the Promoted Builds Plugin to manually promote some of my builds of a project called foo. Everytime foo builds though it builds a downstream job called bar. Is there any way I can make the Promoted Builds Plugin also promote the particular downstream bar that the foo that I'm promoting

promotion plugin: multiple levels of promotion

2012-04-09 Thread Brian J. Murrell
The Promoted Builds Plugin description page (https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin) says: In more complicated scenarios, one can set up multiple levels of promotions. This fits nicely in an environment where there are multiple stages of testings (for example, QA