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
>> 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 SCM. That should allow you to use
>> all the options available in Git. Use the snippet generator for this.
>>
>> Daniel, how does that show checking out a directory within a repo? Do you
> have something more concrete? The snippet generator does not show this.
>

Checking out to a subdirectory within a workspace requires that you nest
the checkout() step inside a dir("subdir-name") step.  The snippet
generator only shows one at a time (as far as I recall), so it won't show
you that combination.

Refer to
https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-43052/Jenkinsfile for
an example of that technique.

Mark Waite


>
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/56b64b99-70dc-4e38-9a6a-6ba29e28aa1a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFs%2B%3D9OuaLdjqX9w3Rbez3-DBN_yCFWEwLQ%2Bdz5dNUnyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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 simplest case, no other person is making changes to this project, 
> and this is their only change.
>
> I have Gerrit triggers set for Patchset Created and Draft Published, and a 
> 5-minute Poll SCM timer set to catch merges.  The default GERRIT_BRACH and 
> GERRIT_REFSPEC are set to master and refs/for/master respectively.
> In the body of the build script, I have:
>
>> if [ -z "${GERRIT_EVENT_TYPE}" -o "$GERRIT_EVENT_TYPE" = 'change-merged' ]
>> then
>> docker push $TAG
>> else
>> echo 'You should not push a verification build'
>> fi
>>
> so that push-button builds and merge builds will push the docker image.
>  
> A change is made on a refs/for/ branch, and this triggers a 
> verification build. The GERRIT_EVENT_TYPE environment variable is set to 
> patchset
> -created, as expected.  I use this value in the build scripting to 
> determine that the docker push should not be performed.
>
> At some point, the change is verified, code-reviewed and then merged.
> However, it appears that Git/Gerrit is determining that the change on the 
> refs/for/ branch will be the same as the merged code, and the 
> timer being used to detect a merge does not detect a change, and no merge 
> build occurs.
>
> The only way out appears to be to push the image from all verification 
> builds as well as merge builds, which is killing the registry and the 
> downstream processes that need to somehow weed out all the unwanted 
> verification build pushes.  That's a huge amount of unexpected work for 
> ~300 builds, and is unsustainable.
>
> What am I doing wrong?  How can I successfully differentiate between a 
> verification build and a merge build?
>
>
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/e87952c8-658f-4d57-9d65-702f1af62051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 anyone help me in this. example would be
> appreciated.
>
>
> EMail Ext Plugin won't help you here, since it's a post-build action.
> However, you could put bash script as first build step into your job that
> sends the mail and then sleeps for 2 minutes before continuing with the
> next step. You could also put that into a wrapper job which only executes
> the bash build step and then triggers your real job.
>
> HTH...
>
> Dirk
> --
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenTextTM Discovery | Recommind
> *Email*: dirk.heinri...@recommind.com
> *Website*: www.recommind.de
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB
> 10646
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet.
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/3df958bf-3187-c239-0153-9ea3aabe31dc%40opentext.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdmeO-gzefM7PqzT%2BZ%3D6nrPiqvF2DdO%2BVyj15FosJFUeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 proxy set up 
is broken" error?

Thanks,
Terry

On Thursday, May 11, 2017 at 9:44:18 AM UTC-6, Terry Lacy wrote:
>
> Since there doesn't seem to be a solution to this, would y'all advise that 
> I post a bug report?
>
> Terry
>
> On Wednesday, May 3, 2017 at 12:45:40 PM UTC-6, Terry Lacy wrote:
>>
>> Okay, we verified that ipv6 was disabled on the network interface. We 
>> also changed the IIS reverse proxy to point to "127.0.0.1:8080" instead 
>> of "localhost:8080". That didn't make any difference.
>>
>>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/d065fe2e-f494-4143-8e73-7e79485979f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 log lines that trick 
me in to think there was something wrong with the step where n the wrong 
order because of asynchronous logging or something similar.

Thanks anyway

El martes, 23 de mayo de 2017, 12:54:19 (UTC+2), Aitkiar Salaran escribió:
>
> 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 produces the error:
>
> node
> {
> def credentials = 'somecredentials'
> sshagent (credentials: [credentials]) 
> {
> sh ( script:"""
> rm -rf common_jenkins_jobs
> git clone ssh://gitol...@somerepos.git
> """)
> }
> }
>
> node ( "ci-server-slave" )
> {
> def credentials = 'somecredentials'
> sshagent (credentials: [credentials]) 
> {
> sh ( script:"""
> rm -rf common_jenkins_jobs
> git clone ssh://gitol...@somerepos.git
> """)
> }
> }
>
> The first block runs on the master node and the seccond on the slave. 
> Examing the execution logs of the first block you can see the sequence:
>
>1. ssh-agent start
>2. rm
>3. git
>4. ssh-agent stop
>
> but the part that runs on the slave shows the sequence:
>
>1. ssh-agent start
>2. ssh-agent stop
>3. rm
>4. git
>
> leaving the git clone out of the ssh-agent environment and failing due to 
> lack of crecedentials.
>
>
> I attached the log of the second node on a simpler test where the sh step 
> only runs an ls ltr command. There you can clearly see that the ls command 
> runs after the ssh-agent ends.
>
>
> ¿ Can this behaviour be part of some missconfiguration on my part or is a 
> bug on the ssh agent step ?
>
>
>
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/e1115eb0-dbab-479b-b923-68391e797896%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
multibranch pipeline?

Thanks

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/00688e1c-9316-461f-9248-16003b56d59d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 with 
> the git plugin. Any ideas? 
>
> Use the 'checkout' step and specify Git SCM. That should allow you to use 
> all the options available in Git. Use the snippet generator for this. 
>
> Daniel, how does that show checking out a directory within a repo? Do you 
have something more concrete? The snippet generator does not show 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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56b64b99-70dc-4e38-9a6a-6ba29e28aa1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Software]



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Robert Sandell
Sent: Wednesday, May 24, 2017 9:25 AM
To: Jenkins Users 
Subject: Re: Extended E-mail Notification (Email-ext) Default Pre-Send Script 
and Script Security...

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 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 entry file:/ 
(7a4a36093f15af3f79ad37dbe1308c5da1d8bace) not yet approved for use

ERROR: Could not send email as a part of the post-build publishers.

org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedClasspathException: 
classpath entry file:/ (7a4a36093f15af3f79ad37dbe1308c5da1d8bace) not yet 
approved for use

I've gone into the Manage Jenkins->In Process Script Security and nothing is 
pending approval.

I've taken the "7aa3609" string (which I'm guessing is a hash) and tried 
putting it directly into the approvedClasspathEntries in scriptApproval.xml

There is no "groovy sandbox" checkbox near the script as mentioned in similar 
problems I've seen described on the 'net.

I've started to play with Permissive Script Security Plugin, but would like to 
avoid that (and the instructions didn't make a lot of sense yet on MacOS).

The script is below.  Is there an easy fix for this?!?

Thanks much!
M@





Pre-send script:


// Load up the first 1000 lines of the log file into a variable
def log = build.getLog(1000)

// Let's setup a boolean of the result of searching for the string that appears
// in the log file when a job successfully completes but no work occurred.

def NothingDone = (log ==~/.*Nothing downloaded, packaged or imported.*/)
assert NothingDone instanceof Boolean
logger.println("** NothingDone is " + NothingDone)

def Error = (log ==~/.*Error.*/)
assert Error instanceof Boolean
logger.println("** Error is " + Error)

def error = (log ==~/.*error.*/)
assert error instanceof Boolean
logger.println("** error is " + error)

// New items were imported into the munki repo
def NewItemsImported = (log ==~/.*new items were imported into Munki.*/)
assert NewItemsImported instanceof Boolean
logger.println("** NewItemsImported is " + NewItemsImported)

// New items were downloaded to the AutoPkg Cache directory
def NewItemsDownloaded = (log ==~/.*new items were downloaded.*/)
assert NewItemsDownloaded instanceof Boolean
logger.println("** NewItemsDownloaded is " + NewItemsDownloaded)

/* The below code is for AutoPkg FAQ #1:
 *
 * Every time I run a recipe it downloads something even if it didn't change. 
Why?
 *  
https://github.com/autopkg/autopkg/wiki/FAQ
 *
 * the IS_TROUBLEMAKER is a per-job environmental variable set using the
 * Jenkins EnvInject Plugin -- 
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin
 *
 * below is the elvis/ternary operator that does the following:
 * if IS_TROUBLEMAKER is set from the Jenkins job configuration, take that value
 * (it should be true).  If it's not set/doesn't exist, set it to false
 * because we have a lot of existing jobs and only set the IS_TROUBLEMAKER on 
jobs that
 * ARE troublemakers!
 */


try {

   // if IS_TROUBLMAKER is set by EnvInject plugin, set known_troublemaker to 
that value
   // (as it could've been a troublemaker in the past, and set to false when it 
was
   // fixed

   known_troublemaker = $IS_TROUBLEMAKER

} catch (MissingPropertyExceptionmpe) {

   // if we get an error, then it's because $IS_TROUBLEMAKER doesn't exist, so 
we
   // should set it to false

   known_troublemaker = false
   logger.println("** IS_TROUBLEMAKER try failed, caught 
MissingPropertyExceptionmpe and set known_troublemaker to " + 
known_troublemaker)

}



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 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 entry file:/ 
> (7a4a36093f15af3f79ad37dbe1308c5da1d8bace) not yet approved for use
> ERROR: Could not send email as a part of the post-build publishers.
> org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedClasspathException: 
> classpath entry file:/ (7a4a36093f15af3f79ad37dbe1308c5da1d8bace) not yet 
> approved for use
>
>
> I've gone into the Manage Jenkins->In Process Script Security and nothing 
> is pending approval.   
>
> I've taken the "7aa3609" string (which I'm guessing is a hash) and tried 
> putting it directly into the approvedClasspathEntries in scriptApproval.xml
>
> There is no "groovy sandbox" checkbox near the script as mentioned in 
> similar problems I've seen described on the 'net.
>
> I've started to play with Permissive Script Security Plugin, but would 
> like to avoid that (and the instructions didn't make a lot of sense yet on 
> MacOS).
>
> The script is below.  Is there an easy fix for this?!?
>
> Thanks much!
> M@
>
>
>
>
>
> Pre-send script:
>
>
> // Load up the first 1000 lines of the log file into a variable
> def log = build.getLog(1000)
>
> // Let's setup a boolean of the result of searching for the string that 
> appears
> // in the log file when a job successfully completes but no work occurred.
>
> def NothingDone = (log ==~/.*Nothing downloaded, packaged or imported.*/)
> assert NothingDone instanceof Boolean
> logger.println("** NothingDone is " + NothingDone)
>
> def Error = (log ==~/.*Error.*/)
> assert Error instanceof Boolean
> logger.println("** Error is " + Error)
>
> def error = (log ==~/.*error.*/)
> assert error instanceof Boolean
> logger.println("** error is " + error)
>
> // New items were imported into the munki repo
> def NewItemsImported = (log ==~/.*new items were imported into Munki.*/)
> assert NewItemsImported instanceof Boolean
> logger.println("** NewItemsImported is " + NewItemsImported)
>
> // New items were downloaded to the AutoPkg Cache directory
> def NewItemsDownloaded = (log ==~/.*new items were downloaded.*/)
> assert NewItemsDownloaded instanceof Boolean
> logger.println("** NewItemsDownloaded is " + NewItemsDownloaded)
>
> /* The below code is for AutoPkg FAQ #1:
>  *
>  * Every time I run a recipe it downloads something even if it didn't 
> change. Why?
>  *  https://github.com/autopkg/autopkg/wiki/FAQ
>  *
>  * the IS_TROUBLEMAKER is a per-job environmental variable set using the 
>  * Jenkins EnvInject Plugin -- 
> https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin
>  *
>  * below is the elvis/ternary operator that does the following:
>  * if IS_TROUBLEMAKER is set from the Jenkins job configuration, take that 
> value
>  * (it should be true).  If it's not set/doesn't exist, set it to false
>  * because we have a lot of existing jobs and only set the IS_TROUBLEMAKER 
> on jobs that
>  * ARE troublemakers!
>  */
>
>
> try { 
>
>// if IS_TROUBLMAKER is set by EnvInject plugin, set known_troublemaker 
> to that value
>// (as it could've been a troublemaker in the past, and set to false 
> when it was
>// fixed
>
>known_troublemaker = $IS_TROUBLEMAKER 
>
> } catch (MissingPropertyExceptionmpe) { 
>
>// if we get an error, then it's because $IS_TROUBLEMAKER doesn't 
> exist, so we
>// should set it to false
>
>known_troublemaker = false
>logger.println("** IS_TROUBLEMAKER try failed, caught 
> MissingPropertyExceptionmpe and set known_troublemaker to " + 
> known_troublemaker)
>
> } 
>
>
> logger.println("** known_troublemaker is " + known_troublemaker)
>
> /* And now let's test against that boolean and kill the e-mail 
> (cancelEmail = true) if it found the
>  * -Nothing downloaded, packaged or imported- string  AND it hasn't found 
> a string with Error or error
>  */
>  
> if (NothingDone && !Error && !error) {
>
> // AutoPkg neither downloaded to the AutoPkg Cache nor imported anything 
> to the munki repo, 
> // so no e-mail this is the case 99% of the time
> logger.println("=== e-mail cancelled: Job completed without errors but 
> nothing was done (nothing downloaded or imported)")
> cancel=true
> } else if (NewItemsImported) {
> // New items were imported into the Munki Repo, send the email.
> logger.println("=*=*=*=*=*=*=*=*=*=*=*=* New Item in Munki Repo, E-mail 
> Sent  =*=*=*=*=*=*=*=*=*=*=*=*")
> cancel=false
>
> } else if (NewItemsDownloaded && known_troublemaker) {
>
> // logger.println("** AutoPkg downloaded, but not imported to Munki as " + 
> $JOB_NAME + " is 

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" build completes, called "Stage2"
Pipeline build starts multibranch pipeline build in its script.

This Rube Goldberg like series of steps were required because a Freestyle 
build can not start a Pipeline build, but a Pipeline build can be triggered 
by a Freestyle build.  A multibranch pipeline build can not be triggered by 
a pipeline build, but a pipeline build can directly start a multibranch 
pipeline build.

At least, these used to be the rules.  We upgraded to the latest LTS 
release (2.46.1 -> 2.46.2) and the ability for a pipleline build to be 
triggered by the completion of a Freestyle build now seems to be gone.

I can configure the Pipeline build to run when the Freestyle build 
complete, but it never actually triggers.  

Ugh -- was hoping someone might know what the current rules are, or point 
me to a jira / bug.  I'm not even sure where to file such a problem report, 
as I'm not sure if this is core Jenkins function, or something to do with 
the pipeline plugins.

Has anyone got a multibranch pipeline build triggered by a URL change?  
Maybe I need to completely redesign this workflow.

Thanks much,
Greg

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/781fc5fb-281a-4374-9edd-0a7ea19810d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 but does not serve my purpose.
> I am new to Jenkins. Can anyone help me in this. example would be
> appreciated.

EMail Ext Plugin won't help you here, since it's a post-build action.
However, you could put bash script as first build step into your job
that sends the mail and then sleeps for 2 minutes before continuing with
the next step. You could also put that into a wrapper job which only
executes the bash build step and then triggers your real job.

HTH...

Dirk
-- 
*Dirk Heinrichs*
Senior Systems Engineer, Delivery Pipeline
OpenText^TM Discovery | Recommind
*Email*: dirk.heinri...@recommind.com 
*Website*: www.recommind.de 

Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach

Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon
Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer
HRB 10646

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail sind nicht gestattet.

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/3df958bf-3187-c239-0153-9ea3aabe31dc%40opentext.com.
For more options, visit https://groups.google.com/d/optout.


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 anyone help me in this. example would be 
appreciated.


On Monday, 24 June 2013 08:44:10 UTC+1, Vinod Kumar wrote:
>
> I am looking for a plugin or way to notify people n minutes before the job 
> actually starts. 
> There was a plugin I saw a long time ago but I don't remember the name. 
> It used to send notification at scheduled time then start actual job "n 
> Minutes" after the scheduled time. 
>
> Can anyone help me for this. 
>
> Thanks & Regards 
> Vinod Kumar 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Notify-n-Minutes-before-Job-Starts-tp4670454.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/7133b3ca-1974-424e-b7e6-a9afa1af2f17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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. However, I also realise that it is hard to know where to document that 
sort of thing.

I do think it is confusing that the polling schedule can be specified in the 
GUI and/or in the script.

Best regards

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Andrew Bayer
Sent: 24 May 2017 13:44
To: jenkinsci-users@googlegroups.com
Subject: Re: Declarative script: specify build trigger in GUI or script?

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 job to be triggered by an SCM commit so I specified in my script:

triggers {
pollSCM('H/5 * * * *')
}

to poll every 5 minutes.

However, the job is not being run even though commits have occurred.

I notice that there is also a 'Build trigger' section in the GUI configuration 
for a branch of the job.

Where should I specify the build trigger: in the GUI or in the script?

Best regards

David

--
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 
https://groups.google.com/d/msgid/jenkinsci-users/e7db9b43810040769c28a1de2fefcee3%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.
--
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdObeusrOokGgkvvUt2d9S_y6aTcZJ_F-od_jW9C17HhSAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Click 
here
 to report this email as spam.

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/412356e71b984d0498ff060ada0d1d1a%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


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 
file, (Maybe there has to be a check up every 15 min or something like 
that...)

Can someone please help? 
Thanks in advance.

Best regards 
Jüli

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/fa4bd9e9-bad8-4c88-bc32-042494b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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. use the one it already has.
>
> I'm not sure if it's finding it on the Jenkins master, or on a local
> worker.
>
> In my case it's an image built and pushed to a local repo by another
> Jenkins job, but the job that wants to use it runs independently.
>
> A workaround is to skip using agent to get the image, and do a docker pull
> (which WILL get the latest one), docker run inside a node{}, but that seems
> kludgey, as does some sort of agent .. docker:dind + docker.pull,
> docker.inside ...
>
> If you're using the Docker plugin to have docker-based slaves (which we're
> not), there's a "pull strategy" config option that has a lovely-sounding
> "pull once and update latest" option, fwiw.
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/9fbf5c04-4a34-4007-b2c4-3fbeb08ed872%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdOb7KV_opkM-2ckrEkX4_xGaog3uqWWSwREH_vK9pNFF2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 file exists on declarative pipeline. I
> made a mix of scripted/declarative pipeline of what I want, but this
> doesn't work:
>
> stage('Unit Tests'){
> steps {
> // Se arquivo de testes existe, roda testes
> if (fileExists VSTest_TestFile) {
> // Roda o VSTest
> echo "\"${tool 'vstest.console_v14'}\"
> ${VSTest_TestFile} ${VSTest_Args}"
> bat "\"${tool 'vstest.console_v14'}\"
> ${VSTest_TestFile} ${VSTest_Args}"
>   }
>  }
> ​
>
> Any hints?
>
> Thanks,
>
> Thiago
> -
>
>
> "Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO),
> empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é
> enviada exclusivamente a seu destinatário e pode conter informações
> confidenciais, protegidas por sigilo profissional. Sua utilização
> desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a
> recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente,
> esclarecendo o equívoco."
>
> "This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a
> government company established under Brazilian law (5.615/70) -- is
> directed exclusively to its addressee and may contain confidential data,
> protected under professional secrecy rules. Its unauthorized use is illegal
> and may subject the transgressor to the law's penalties. If you're not the
> addressee, please send it back, elucidating the failure."
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/10812493383fd20d902df7a9184ed82053999a58%40serpro.gov.br
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdOb%2BEEfDxGhez-cyzk03yJ0mZ-zZVeGaG7Ma7g_hd1nymQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 job to be triggered by an SCM commit so I specified in
> my script:
>
> triggers {
> pollSCM('H/5 * * * *')
> }
>
> to poll every 5 minutes.
>
> However, the job is not being run even though commits have occurred.
>
> I notice that there is also a 'Build trigger' section in the GUI
> configuration for a branch of the job.
>
> Where should I specify the build trigger: in the GUI or in the script?
>
> Best regards
>
> David
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/e7db9b43810040769c28a1de2fefcee3%40EUX13SRV1.EU.NEC.COM
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdObeusrOokGgkvvUt2d9S_y6aTcZJ_F-od_jW9C17HhSAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[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 
https://groups.google.com/d/msgid/jenkinsci-users/20170524123350.rjsxtry4r2xndlvx%40pl-59055.rocqadm.inria.fr.
For more options, visit https://groups.google.com/d/optout.


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.
> 

https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Jenkins+upon+start+up

This may take some trial & error though, as you're digging deep into the 
Jenkins internals.

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/3F02EFFC-3BEC-45F3-BEEA-C3BA0BCE5EF3%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


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 
https://jenkins.io/security/advisory/2017-04-10/#subversion-tagging-plugin

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/28E1ED50-53BE-4AB8-AFB5-6CE0891A170E%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


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 SCM. That should allow you to use all 
the options available in Git. Use the snippet generator for 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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/79BCCD51-3897-4695-BF9E-2E6AF9076CE4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


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 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:
>
> https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/issues/65
>
> then went to the kubernetes plugin road by trying to add an additional
> podTemplate:
>
> https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/issues/75
>
> tried many things, no success, the whole point is to be able to switch
> between several configuration based on all ready gcloud/kubectl images:
>
> https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/blob/master/jenkins/docker-slave-image/Dockerfile
>
> with different configuration for each (like adding nodejs etc...)
> depending on the need of my services.
>
>
> but only the default podTemplate is working for me, can't seem to add
> another, either with podTemplate on jenkinsfile or via the kubernete plugin
> configuration (showed in the screenshot attached).
>
> quite new to Jenkins/Kubernetes/Docker, don't know what I'm missing...
>
>
> Thanks in advance for your help and for taking the time.
> Philippe
>
>
>
>
>
> --
> 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
> https://groups.google.com/d/msgid/jenkinsci-users/299315b6-546a-4bce-ac72-c95469ff7ece%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6OuEkxL%2By-E9Y6rK-_hJ%2BrFfbaHdTByGJdZ2kj2MLXBXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 
> and result in more that 400 paralell branches, each of them executed on a 
> different slave node.
> Actually we face an issue where pipeline can't display all the parallel 
> branches: "Unable to display more"
> We don't even want them to be rendered as separated steps, we just want 
> them to be launched simultaneously.
>
> The pipeline we have actually looks like this (The problem occurs on the 
> Functional tests part):
>
> Build --- Unit Tests --- Integration Tests --- Functional Tests ---
>  |  | 
>  |
>   tool Asuite A 
> matrix-A-A-batch 0
>   tool Bsuite B 
> matrix-A-A-batch 1
>   tool C   
>  matrix-A-A-batch 2
>   
>  matrix-A-A-batch 3
>   
>   
>   
>  "Unable to display more"
>
>  
> I don't know if I this issues will fix my issue and how I can contribute 
> on them:
> * https://issues.jenkins-ci.org/browse/JENKINS-41205
> * https://issues.jenkins-ci.org/browse/JENKINS-38442
>
> Am I using Jenkins the good way ? I mean it is supposed to be able to 
> handle a very large amount of slave nodes,
> so I assume you can use all of them in the same pipeline if you have 
> thousands of browser tests to be run on a large matrix right ?
>
> Do you know if I could use something else than parallel that could fit?
>
> Thanks a lot 
>
>

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/438c4179-d25b-4504-a027-90019c8f9581%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:
https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/issues/65

then went to the kubernetes plugin road by trying to add an additional 
podTemplate:
https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/issues/75

tried many things, no success, the whole point is to be able to switch 
between several configuration based on all ready gcloud/kubectl images:
https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/blob/master/jenkins/docker-slave-image/Dockerfile

with different configuration for each (like adding nodejs etc...) depending 
on the need of my services.


but only the default podTemplate is working for me, can't seem to add 
another, either with podTemplate on jenkinsfile or via the kubernete plugin 
configuration (showed in the screenshot attached).

quite new to Jenkins/Kubernetes/Docker, don't know what I'm missing...


Thanks in advance for your help and for taking the time.
Philippe

 



-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/299315b6-546a-4bce-ac72-c95469ff7ece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: 'git@github.devops.mycompany.local:Org/MyLargeRepo.git'
}
}

What I want is to clone from 
github.devops.mycompany.local:Org/MyLargeRepo/path/to/subproject

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?

-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/1800cb3e-750c-403a-8c5a-41ef6b7354b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.