Re: Mac Jenkins Can't Clone/fetch from GitHub

2017-05-23 Thread 'Shuguo Yang' via Jenkins Users
Hey, this is because Jenkins is running as the user jenkins, which is not the current user on your mac. The default path is "/User/Share/Jenkins", install it under "$HOME/.jenkins" to make it work. So: 1. Stop the current Jenkin on your mac. *sudo launchctl unload

Extended E-mail Notification (Email-ext) Default Pre-Send Script and Script Security...

2017-05-23 Thread Matt Childress
This is driving me nuts. Jenkins has been running just fine until during one of the updates in the past month or so something went south. We're now getting no e-mail and the following error in the Job logs: Executing pre-send script Pre-send script tried to access secured objects: classpath

Gerrit differentiate between a verification build and a merge build

2017-05-23 Thread John Mellor
I am using a single Jenkins job for each project in git, with a Gerrit server. Some of the build steps in these builds push Docker images to the registry. I am trying to prevent Gerrit verification builds from pushing these images, while allowing merge and push-button builds to do so. In the

Re: Are jelly templates supported in email-ext with pipeline

2017-05-23 Thread jerome
Into pipeline they are working to certain extent, but you have to take special care when declaring the usage of the body (it does not support windows \ into the path, convert to unix path type): emailext body: '${JELLY_SCRIPT,template="/path/to/templatefile.template"}', subject: 'subject', to:

Re: env.WORKSPACE returns null on pipeline

2017-05-23 Thread Stephen Connolly
On 23 May 2017 at 07:21, Thiago Carvalho Davila wrote: > Sorry Stephen, I omitted the agent part (and the rest of the pipeline) for > the sake of conciseness, to isolate the problem. But the pipeline script > is being executed on the slave. > > More acurate version:

Re: env.WORKSPACE returns null on pipeline

2017-05-23 Thread Thiago Carvalho Davila
Sorry Stephen, I omitted the agent part (and the rest of the pipeline) for the sake of conciseness, to isolate the problem. But the pipeline script is being executed on the slave. More acurate version: PATH_CI_TOOLS="${env.WORKSPACE}\\tools_ci" pipeline {     agent {     label 'myslave'  

Re: Are jelly templates supported in email-ext with pipeline

2017-05-23 Thread Slide
What did you try, and what was the result? On Tue, May 23, 2017 at 6:12 AM Doron Shai wrote: > Do you know how i can use the CHANGES script token ? It does not see to be > possible according to what I tried > > On Tue, May 23, 2017 at 4:10 PM, Slide

Re: email-ext - jelly script example for matrix job

2017-05-23 Thread seckler
Hi, I've *attached* a file, that is somewhat similar to the file in the wiki (https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-TemplateExamples). Difference is, that it gets the axes from the job automatically and works with an arbitrary number of axes. Best, Steffen

Re: Are jelly templates supported in email-ext with pipeline

2017-05-23 Thread Doron Shai
Do you know how i can use the CHANGES script token ? It does not see to be possible according to what I tried On Tue, May 23, 2017 at 4:10 PM, Slide wrote: > Many macros should work fine by putting them in the body or subject fields > of the pipeline. SCRIPT

Re: Are jelly templates supported in email-ext with pipeline

2017-05-23 Thread Slide
Many macros should work fine by putting them in the body or subject fields of the pipeline. SCRIPT specifically uses some things from AbstractBuild, which a pipeline job is not, so that is why SCRIPT can't be used. It would need to be updated to support pipeline jobs as well. On Tue, May 23, 2017

Re: Are jelly templates supported in email-ext with pipeline

2017-05-23 Thread dorons
Any update about that? I found it really missing. can not use templates / can not use other token macros such CHANGES... I think that the whole JenkinsFile concept is great but still not mature for real use... On Thursday, April 21, 2016 at 5:21:52 PM UTC+3, slide wrote: > > The biggest

Multibranch GitHub Branch Source Jenkinsfile woes - extreme confusion

2017-05-23 Thread Jason Antman
Hello, I'm just getting started with Jenkinsfiles (Scripted) after using Job DSL for a few years. I'm playing around with the Multibranch Pipeline plugin (using GitHub Branch Source), as it seems like an incredibly easy way to do things. I've already got a build running in a few dozen lines

RE: Coverity Plugin

2017-05-23 Thread Gardell, Steven
I believe that there is very little that you can do without the Coverity Connect server. I also looked at the Coverity plugin and decided that it was not going to help too much. So instead I rolled my own using the imperative pipeline. What I do is to pull back the results of a ‘canned’ view

ssh agent failing on pipeline script running on slave

2017-05-23 Thread Aitkiar Salaran
Hi, I have pipeline job that uses ssh agent step to set up credentials to connect to git repository and clone it. When i execute the job on the master jenkins, it runs flawlesly. When run it on a slave it fails because ssh agent closes before the git clone. This is an example of the code that

Re: env.WORKSPACE returns null on pipeline

2017-05-23 Thread Stephen Connolly
The pipeline script is executed on the master. Only when you are within scope of an actual agent node will the workspace have been assigned, so the example you are doing will be expected to return null as you are outside the pipeline {} entirely On 22 May 2017 at 07:56, Thiago Carvalho Davila

No such property: it for class: Script1

2017-05-23 Thread Geo Palassery
We are also the error when we use email ext plugin with ${SCRIPT, template="SquishSummary.groovy"} as in Pre-send script. Its already discussed on this thread https://issues.jenkins-ci.org/browse/JENKINS-33468 groovy.lang.MissingPropertyException: No such property: it for class: Script1 {{ at

Re: env.WORKSPACE returns null on pipeline

2017-05-23 Thread Dzmitry Kashlach
It happens because EnvVars object contains less variables in "pipeline" mode than in "Freestyle". Do not know how to deal with it in your case. On Monday, May 22, 2017 at 5:56:22 PM UTC+3, Thiago Carvalho Davila wrote: > > Hi, > > I am trying to get WORKSPACE folder from jenkins global