Proxy for branch indexing in multibranch pipeline

2016-04-28 Thread Lionel Orellana
Hi I have a proxy configured in my Jenkins settings (Manage Plugins -> Advanced). I'm pretty sure this is what makes freestyle jobs and Pipelines set the proxy before connecting to github. Here's the output from a Pipeline job: > /opt/rh/devtoolset-2/root/usr/bin/git config --local

gitcredentials in Pipeline

2016-04-28 Thread Lionel Orellana
Hi I have a personal access token in my github account which I have added as a Credential in Jenkins. In freestyle jobs I can select the credential when configuring the git repository. This results in the token being used to configure gitcredentials when the job runs. using .gitcredentials

Re: Jenkins 2.0 and the game of life

2016-04-28 Thread Sarah Baker
Thank you, that makes sense. It's not something I'm introducing in the build line that I enter into jenkins for maven. I don't know how it's getting introduced. Is there some global setting I should look for, the global configs say simply default for maven, or should I look somewhere in the

Re: email-ext as build step

2016-04-28 Thread Craig Rodrigues
Niksan, Take a look at this Pipeline script I wrote: https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L233 which sends e-mail as a post-build step in case of failures. -- Craig On Thu, Apr 28, 2016 at 7:44 AM, 'Niksan' via Jenkins Users <

Jenkins job output values

2016-04-28 Thread Alan Evangelista
Hi. I execute a Jenkins job remotely via the Jenkins API and I need to get one or more return values from the Jenkins build. Is there any way to define, when running a build, a custom return value which will be returned by the Jenkins API ? What are the alternatives? The ones I currently see:

Submitting a job via REST fails to save SCM and polling settings

2016-04-28 Thread imbacen
I submitted a new job via GUI and then replicated the exact same JSON with a REST call. The result is not the same unfortunately, the new job is missing SCM and polling information but has slave label and build command stored successfully. I am calling Jenkins with basic authentication and

Jenkinsfile to clone a remote repository

2016-04-28 Thread Jeeva Chelladhurai
Hello All, I am planning to organize my source code in one github repository, and the Jenkinsfile and the configuration/topology file in a different github repository.. Would it be possible to clone/check out the remote repository using my Jenkinsfile? I tried something as show below but it

Re: Access control in pipeline input step

2016-04-28 Thread Lionel Orellana
Great. Thanks. On 28 April 2016 at 17:45, Daniel Beck wrote: > > > On 28.04.2016, at 04:23, Lionel Orellana wrote: > > > > How can I restrict who can actually approve a manual (i.e. input) step > in a pipeline? If I have a "Deploy to PROD" step I only want

Re: Request: Option to install plugins through web client instead of server-side.

2016-04-28 Thread James Nord
Good news this has been discussed, bad news is that there is no implementation of this yet. a slightly hacky workaround to save you pulling your hair out every time you want to upgrade... on your desktop (or machine with access to t'internet) download the json file, then parse it and for

Request: Option to install plugins through web client instead of server-side.

2016-04-28 Thread Jeremy Morton
Like many enterprise servers, my Jenkins server does not have Internet connectivity. Updating plugins is always a tedious bit of work to see what plugins have new versions in the Update Center, and then going to http://updates.jenkins-ci.org/download/plugins/ to find them by their folder

Re: plugin icon-shim : "Cannot Load Update Center" : I can see other plugins - http://mirrors.jenkins-ci.org/ not responding?

2016-04-28 Thread Daniel Beck
> On 28.04.2016, at 18:45, Bob Kuhfahl wrote: > > Was able to download most plugins for git plugin, but not able to find > icon-shim... > Any suggestions to work around this? We currently have an infra problem affecting update sites. See https://twitter.com/jenkinsci

plugin icon-shim : "Cannot Load Update Center" : I can see other plugins - http://mirrors.jenkins-ci.org/ not responding?

2016-04-28 Thread Bob Kuhfahl
Was able to download most plugins for git plugin, but not able to find icon-shim... Any suggestions to work around this? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an

RESTAPI executedMojos ?

2016-04-28 Thread khmarbaise
Hi, i can access the executed Mojo's incl. there execution time in Jenkins via the following pattern: job/JobName/BuildNumber/groupId//executedMojos But now i would like access those informations via the REST API. Unfortunately i can't find a way to access those informations...via the REST

Re: build trigger condition on checkin

2016-04-28 Thread Tom Moore
On Wednesday, April 27, 2016 at 11:13:05 AM UTC-4, Hector Magnanao wrote: > > Hi, > > I'm using Jenkins 1.625.2 on Windows and I was wondering if there was a > way to trigger a build only on certain file types. Right now my build runs > on every checkin and I'd like to narrow it to down to a

Re: Pipelines, iterating maps and more headaches

2016-04-28 Thread Jesse Glick
On Thu, Apr 28, 2016 at 3:48 AM, Norbert Lange wrote: > the replay feature isnt mentioned in any of the documents from > https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin, you should > really mention it there to get people using it Pipeline documentation in general

Re: email-ext as build step

2016-04-28 Thread 'Niksan' via Jenkins Users
Well, the case I'm interested in is a conditional build step and to be notified that the step is going to happen. On Thursday, April 28, 2016 at 3:48:17 PM UTC+1, slide wrote: > > I've been planning on adding a build step for email-ext, I just haven't > had the time yet. If you have multiple

Re: email-ext as build step

2016-04-28 Thread Slide
I've been planning on adding a build step for email-ext, I just haven't had the time yet. If you have multiple jobs, you could look at the email-ext-template plugin, it allows you to create templates and then just assign the template to the job instead of configuring email-ext separately for each

Gitlab prefixes /project to web hooks

2016-04-28 Thread Doug Garstang
I've started using folders in Jenkins. One of my jobs is at the URL: https://ci.foobar.com/job/Chef%20Cookbooks/job/slice-ntp/job/Jobs/job/chef-cookbook-slice-ntp-build/ I'm also trying to use Gitlab to post a web hook on commit to the job. On the Gitlab project page, the Jenkins URL js:

Failed to connect to Github repository

2016-04-28 Thread Prasu S
I'm trying to connect from Jenkins(which is on windows server) to Github repository(this is in cloud) . I received this error: Failed to connect to repository :failed to connect to using credentials(status=403). Please help me resolve this issue. It's urgent. Thank You, P !! -- You

Re: Saving job log as text file?

2016-04-28 Thread karlis purens
For future reference if anyone else stumbles upon a similar problem: I couldn't find a way to download console logs. But it's possible to open console logs on the slave machine using %BUILD_URL%consoleText So i executed a post-build-task cmd: start "" "%BUILD_URL%consoleText" This opens job

Re: Plugin change logs not being updated

2016-04-28 Thread Mark Waite
I'm not sure that's blocking plugin commits without a changelog posting to the wiki page is the best way to address your concern, or maybe I'm misunderstanding your proposal. For me, at least, a plugin release is typically composed of multiple commits. Many of those commits are not relevant to

Install specific version of plugins with Groovy script

2016-04-28 Thread Alexandre Chaussier
Hello, Today, I use groovy scripts with an Ansible role to manage my Jenkins installation and configuration. All is OK if I want to use latest versions of plugins, but I would like to know if it is possible to request a specific version of the plugins when I request installation from my

Re: Jenkins XUnitPublisher call from pipeline plugin

2016-04-28 Thread Павел Песецкий
Didn\t know that I can use snippet generator for plugin steps: понедельник, 25 апреля 2016 г., 20:27:24 UTC+3 пользователь Павел Песецкий написал: >

Re: Pipelines, iterating maps and more headaches

2016-04-28 Thread Norbert Lange
Nope, I initially used groovysh for rapid testing, until I found out good Groovy in Groovy is not necessarily good Groovy in Jenkins. Then I created a job with a Pipeline Script an ran that violently. AFAIK, the replay feature isnt mentioned in any of the documents from

Re: Jenkins 2.0 and the game of life

2016-04-28 Thread Daniel Beck
> On 28.04.2016, at 06:04, Sarah Baker wrote: > > I suspect Jenkins, or some configuration inside Jenkins. > I had at first assumed it was something wrong with my maven install, but > I removed it completely, allowing jenkins to install it (option in the Global > Tool

Re: Access control in pipeline input step

2016-04-28 Thread Daniel Beck
> On 28.04.2016, at 04:23, Lionel Orellana wrote: > > How can I restrict who can actually approve a manual (i.e. input) step in a > pipeline? If I have a "Deploy to PROD" step I only want people with a > particular role to be able to approve. Am I going about it the wrong