Re: How to set global quiet period automatically on Jenkins startup

2017-07-17 Thread Barry Laffoy
rite groovy scripts is > pretty much the only workable technique. > > On Wednesday, February 8, 2017 at 2:32:37 AM UTC-7, Barry Laffoy wrote: >> >> By digging into the source code, I found an answer myself. >> >> import jenkins.model.Jenkins >> instance = J

Re: How to set global quiet period automatically on Jenkins startup

2017-02-08 Thread Barry Laffoy
8 February 2017 09:18:46 UTC, Barry Laffoy wrote: > > In my never-ending quest to create a deployment script for Jenkins (why is > this so difficult?), I would like to be able to configure the quiet period > on startup, *without needing to configure it through the UI*. > > Is the

How to set global quiet period automatically on Jenkins startup

2017-02-08 Thread Barry Laffoy
In my never-ending quest to create a deployment script for Jenkins (why is this so difficult?), I would like to be able to configure the quiet period on startup, *without needing to configure it through the UI*. Is there a way of configuring this through groovy? Ideally I would like to place a

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-06 Thread Barry Laffoy
sday, January 5, 2017 at 3:37:54 AM UTC-8, Barry Laffoy wrote: >> >> If this is of use to anybody else, I was able to workaround this >> implementation problem in the jenkinsci/docker with the following: >> >> FROM jenkins:2.19.4 >> >> ARG user=jenkins >

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-05 Thread Barry Laffoy
e way I want to do it. Cloning the entire jenkinsci/docker repo and setting these build args directly seems like a better option. On Wednesday, 4 January 2017 17:05:56 UTC, Barry Laffoy wrote: > > Dirk Heinrichs' comments have made me realise that this problem goes both > ways.

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
user. What I need to be doing is building the jenkinsci/docker image with "--build-arg uid=$(id -u) --build-arg gid=$(id -g)" to match the container to the host user. On Wednesday, 4 January 2017 08:51:41 UTC, Barry Laffoy wrote: > > Aha, I understand what you're saying now. Th

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
Aha, I understand what you're saying now. There is such a user on both the development and the production hosts I'm using, unfortunately. I'll investigate what can be done to change that. On Wednesday, 4 January 2017 08:44:45 UTC, Dirk Heinrichs wrote: > > Am 04.01.2017 u

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
SSH_AGENT socket into docker and away you > go... of course none of that is written yet... so fit now just hack it > working > > On Tue 3 Jan 2017 at 14:21, Barry Laffoy > > wrote: > >> Hi >> >> I'm trying to set-up our Jenkins master in a reproduci

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
of the Jenkins user without root & gosu? Or do you mean to only run the container as a user on host with uid 1000? On Wednesday, 4 January 2017 07:51:23 UTC, Dirk Heinrichs wrote: > > Am 03.01.2017 um 15:21 schrieb Barry Laffoy: > > Mounting the key location as volume with `do

Securely insert ssh keys into Jenkins Docker image

2017-01-03 Thread Barry Laffoy
Hi I'm trying to set-up our Jenkins master in a reproducible way using the Docker image here: https://github.com/jenkinsci/docker One problem I am having is how to make ssh private keys (e.g. for polling git repos) available within the container in a secure manner. Ideally, I would like to be

Re: Git polling triggers multiple (100s) builds of the same branch, which has already been deleted

2016-06-23 Thread Barry Laffoy
15 > error: failed to run repack Signal 15 is SIGTERM, right? I can't see what has caused that though. On Thu, Jun 23, 2016 at 11:11 AM, Barry Laffoy wrote: > Hi > > I've seen this problem crop up several times in our Jenkins set up. > > The Jenkins git polling will

Git polling triggers multiple (100s) builds of the same branch, which has already been deleted

2016-06-23 Thread Barry Laffoy
Hi I've seen this problem crop up several times in our Jenkins set up. The Jenkins git polling will start triggering jobs non-stop for a branch of git that has already been deleted from origin. The only fix I can find is to go into the workspace used for polling on all Jenkins slaves/agents and

Adding environment variables to node configuration

2016-05-03 Thread Barry Laffoy
Hi As in this SO question, http://stackoverflow.com/q/34186806/1506521, I am trying to set environment variables on my Jenkins nodes (master + slaves) automatically. i.e. via a script, without having to go through the web front end. The code given in the answer only works if the Node Propertie

Re: Adding environment variables to node configuration

2016-05-03 Thread Barry Laffoy
= Jenkins.instance def evnp = new EnvironmentVariablesNodeProperty(); for (prop in evnp) { prop.envVars.put("MY_OTHER_NAME", "my_other_value") } instance.nodeProperties.add(evnp) instance.save() Perfect! On Tuesday, 3 May 2016 16:02:15 UTC+1, Barry Laffoy wrote: > > Hi > &

How to use External Scheduler Plugin or REST Service Scheduler Plugin?

2016-02-25 Thread Barry Laffoy
Hi Does anyone have any advice on using the either of these plugins? https://wiki.jenkins-ci.org/display/JENKINS/External+scheduler+plugin https://wiki.jenkins-ci.org/display/JENKINS/REST+Service+Scheduler+Plugin We're having serious issues with how Jenkins chooses to schedule jobs, and I would

Flow DSL: non-blocking build trigger

2016-01-22 Thread Barry Laffoy
Is it possible to trigger a build of a job from a Build Flow job whose execution does not block the execution of the calling job? If that's not clear, say I have three Jenkins jobs: flow-job, short-job, long-job. "flow-job" is used to trigger a build of both "short-job" and "long-job". However,

Re: Plugin configuration/dependency management

2015-09-25 Thread Barry Laffoy
Update Site, actually Jenkins provide another one > called experimental. It might help you if you would like to archive those > artifacts (hpi/jpi) in your internal artifact repo. > > I hope it helps > > Cheers > > On Friday, 25 September 2015 12:45:46 UTC+2, Barry La

Plugin configuration/dependency management

2015-09-25 Thread Barry Laffoy
Hi Is there any way of managing the plugins installed in Jenkins other than through the GUI interface? Ideally I would like to be able to define a list of plugins (names, URLs, version numbers) in a text file, which would be read by Jenkins and ensure that the correct plugins are installed (an

Re: Publish Over SSH after build failure

2015-07-14 Thread Barry Laffoy
Thanks for your response. Do you know if this configuration option is available in Jenkins Job Builder <http://docs.openstack.org/infra/jenkins-job-builder/>? I have otherwise implemented the publishing step by shelling out to rsync. On Tue, Jul 14, 2015 at 3:11 PM, Bap wrote: > Quot

Re: Publish Over SSH after build failure

2015-07-13 Thread Barry Laffoy
I tried wrapping the Publish Over SSH post-build step with a Flexible-Publish conditional action set to always, but the same outcome results. I think that I may have to use scp from bash scripts to do my publishing, if Jenkins refuses to cooperate. On Mon, 13 Jul 2015 at 11:31 Barry Laffoy

Publish Over SSH after build failure

2015-07-13 Thread Barry Laffoy
Hi I'd like to publish build artifacts from testing and linting jobs (XMLs, JSON) to an external server over SSH. To do this, I'm using the Publish Over SSH plugin. I have a problem though, in that if there are any testing or linting errors the build is marked as a failure. After this, Publish