Re: How to clone a directory from a remote repo in a Jenkins pipeline script?

2017-05-24 Thread Mark Waite
On Wed, May 24, 2017 at 9:01 AM Mark Allison wrote: > On Wednesday, 24 May 2017 13:29:58 UTC+1, Daniel Beck wrote: > >> >> > On 24. May 2017, at 09:23, Mark Allison wrote: >> > >> > I know I probably need to use sparse and/or shallow checkouts, but >>

Re: Gerrit differentiate between a verification build and a merge build

2017-05-24 Thread Jacob Larsen
Have you tried just adding the gerrit trigger for change merged instead of polling SCM? Also, your condition looks wrong, try this: if [ -z "${GERRIT_EVENT_TYPE}" ] || [ "$GERRIT_EVENT_TYPE" == 'change-merged' ] /Jacob Den tirsdag den 23. maj 2017 kl. 20.58.51 UTC+2 skrev John Mellor: > > I

Re: [EXTERNAL] - Re: Notify "n Minutes before Job Starts"

2017-05-24 Thread Slide
email-ext supports pre-build emails using the pre-build trigger. On Wed, May 24, 2017 at 6:58 AM Dirk Heinrichs wrote: > Am 24.05.2017 um 12:23 schrieb Chandanlal Chouhan: > > I am actually looking for similar kind of solution in which I need to send > email using

Re: Jenkins IIS Reverse Proxy

2017-05-24 Thread Terry Lacy
I posted a bug (https://issues.jenkins-ci.org/browse/JENKINS-44239), and it was resolved as "not a defect", so I'm back here, still looking for a solution. Does anyone here run Jenkins behind IIS? Are you using a recent version? Are you able to get rid of the "It appears that your reverse

Re: ssh agent failing on pipeline script running on slave

2017-05-24 Thread Aitkiar Salaran
I'll answer my self. The problem was not in the ssh-agent step but on the knwon_hosts file. Since it was the first connection to the git repos from that slave machine, the knwon_hosts file in the slave didn't contain the keys for the remote git server and the checkout fails. I supouse that the

Multibranch pipeline global build number

2017-05-24 Thread kubetest499
Each branch built starts with build #1 which doesn't help when you're building docker images based upon your version e.g. 1.0.1-build_number... develop branch could be 1.0.1-1 and release branch could also be 1.0.1-1 Is there any way to have globally incremental build numbers using the

Re: How to clone a directory from a remote repo in a Jenkins pipeline script?

2017-05-24 Thread Mark Allison
On Wednesday, 24 May 2017 13:29:58 UTC+1, Daniel Beck wrote: > > > > On 24. May 2017, at 09:23, Mark Allison > wrote: > > > > I know I probably need to use sparse and/or shallow checkouts, but can't > seem to work out how to configure that in a Jenkins pipeline script

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

2017-05-24 Thread Hickel, Kelly
Then I think you shoul duse build 403. Kelly Hickel Product Development Architect BMC Software phone: 952.345.8677 BMC 5 digit: 58677 fax: 952.345.8721 cell: 651-815-5531 1600 Tower, Suite 450 1600 Utica Av. So. St. Louis Park, MN 55416 [BMC TrueSight] [BMC

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

2017-05-24 Thread Robert Sandell
Your script doesn't seem to need a classpath entry, and the classpath entry seems to be an empty string, or just white space? /B On Tuesday, May 23, 2017 at 10:14:57 PM UTC+2, Matt Childress wrote: > > This is driving me nuts. Jenkins has been running just fine until during > one of the

Triggering a multibranch pipeline build from a URL Change

2017-05-24 Thread Greg Smith
We would like to trigger a multibranch pipeline build whenever a file at a URL changes. We had a mechanism that worked, but a recent update broke that mechanism. Here's what we had setup: URLTrigger used to trigger a Freestyle build, named "Stage1" Pipeline build that runs whenever "Stage1"

Re: [EXTERNAL] - Re: Notify "n Minutes before Job Starts"

2017-05-24 Thread Dirk Heinrichs
Am 24.05.2017 um 12:23 schrieb Chandanlal Chouhan: > I am actually looking for similar kind of solution in which I need to > send email using email-extn plugin before build and then sleep for 2 > minute and then MSBuild starts and deployed to server. I have tried > using quite feature of Jenkins

Re: Notify "n Minutes before Job Starts"

2017-05-24 Thread Chandanlal Chouhan
I am actually looking for similar kind of solution in which I need to send email using email-extn plugin before build and then sleep for 2 minute and then MSBuild starts and deployed to server. I have tried using quite feature of Jenkins but does not serve my purpose. I am new to Jenkins. Can

RE: Declarative script: specify build trigger in GUI or script?

2017-05-24 Thread David Aldrich
Hi Andrew, Yes the polling is specified in the JenkinsFile, which does come from SCM. I found that the polling ran fine after I had manually run the build once, as you intimated. So it’s working fine now. I don’t know how one should now that it’s necessary to run the build manually once.

Export Jenkins Reports to CVS file

2017-05-24 Thread dursun . julide
Hi, I would like to find out whether it is possible to export Jenkins Reports (if the build was successful) to a CSV file. The CSV file would have a specific structure. So the name, email adress, grade (1 for a successfull build), and the name of the task should be exported into that preapared

Re: declarative: how can agent { docker { image 'foo:latest' }} really get the latest version?

2017-05-24 Thread Andrew Bayer
It's running on the agent. If the behavior here is wrong, please do open a JIRA. Thanks! A. On Fri, May 19, 2017 at 1:30 PM Matt Stave wrote: > If you run such a job the 1st time, all is well. > If you run it again, it may or may not decide to grab the latest version > vs.

Re: fileExists on declarative pipeline

2017-05-24 Thread Andrew Bayer
If statements, variable assignment, and the like are only allowed in Declarative if they're within a script {...} block inside the steps {...} block. A. On Mon, May 22, 2017 at 9:43 AM Thiago Carvalho Davila < thiago.dav...@serpro.gov.br> wrote: > Hello, > > I want to run unit tests only if

Re: Declarative script: specify build trigger in GUI or script?

2017-05-24 Thread Andrew Bayer
A couple questions - is this being specified in a Jenkinsfile coming from SCM? Have you run the build once? A. On Mon, May 22, 2017 at 10:00 AM David Aldrich wrote: > Hi, > > I'm confused about how to specify a build trigger for a declarative > script. I want the

[no subject]

2017-05-24 Thread Sébastien Hinderer
-- 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 email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: bootstrapping jenkins with initial password

2017-05-24 Thread Daniel Beck
> On 23. May 2017, at 04:38, Jeeva Chelladhurai wrote: > > I would also like to bootstrap Jenkins with an initial username and password > during the jenkins docker image build time or even better the first time I > launch the jenkins container. >

Re: svn tagging plugin

2017-05-24 Thread Daniel Beck
> On 22. May 2017, at 22:21, Pawel Jasinski wrote: > > I have re-installed jenkins using the latest stable. > To my surprisse I am not able to find a svn tagging plugin. > Did I screw up my installation? Removed from publication due to

Re: How to clone a directory from a remote repo in a Jenkins pipeline script?

2017-05-24 Thread Daniel Beck
> On 24. May 2017, at 09:23, Mark Allison wrote: > > I know I probably need to use sparse and/or shallow checkouts, but can't seem > to work out how to configure that in a Jenkins pipeline script with the git > plugin. Any ideas? Use the 'checkout' step and specify Git

Re: podTemplate with GKE

2017-05-24 Thread Carlos Sanchez
First, what does it mean "it doesn't work"? Have you checked the Jenkins logs? You can find examples at https://github.com/jenkinsci/kubernetes-plugin On Wed, May 24, 2017, 09:39 Philippe Fuentes wrote: > Hi everybody, > I've been strugleling for a while trying to

Re: BlueOcean Pipeline and huge number of parallel steps

2017-05-24 Thread Clément Gautier
In case someone want an answer: https://stackoverflow.com/questions/43976022/jenkins-pipeline-and-huge-amount-of-parallel-steps On Friday, May 12, 2017 at 2:16:01 PM UTC+2, Clément Gautier wrote: > > Hello there :) > > We have in our company a build that launch a lot of tests on our code base

podTemplate with GKE

2017-05-24 Thread Philippe Fuentes
Hi everybody, I've been strugleling for a while trying to add an additional podTemplate to the default one offered by this nice google installation tutorial: https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes started by trying to make the docker plugin work:

How to clone a directory from a remote repo in a Jenkins pipeline script?

2017-05-24 Thread Mark Allison
Hi, I have a large repo in GitHub Enterprise and need to clone a sub-directory from it on my Jenkins build server and just build that sub-directory. I am using a pipeline script and have this right now: node { stage ('checkout') { git url: