Hi This is fixed. The GUI configuration was sufficient but I wrongly had the ‘ignore externals’ option checked.
Best regards David From: [email protected] [mailto:[email protected]] On Behalf Of David Aldrich Sent: 06 March 2018 11:50 To: [email protected] Subject: Confused about svn checkout with externals in declarative pipeline Hi I have a declarative pipeline that is to checkout a Subversion project and build it (on Windows with msbuild). Until now, I have specified the checkout solely in the project’s configuration page i.e. using the GUI. However, the project has changed and now uses svn externals. I specified ‘Additional Credentials’ in the configuration page but the externals are not appearing in the checkout on the slave (they do appear if I do a similar thing with a conventional i.e. non-pipeline Jenkins job). So I am guessing that I need to do an explicit checkout in the declarative script. So I have: stage('myProj') { agent { label "mySlave" } steps { checkout([$class: 'SubversionSCM', additionalCredentials: [[credentialsId: 'snip', realm: 'snip']], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[credentialsId: 'snip', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: 'snip']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) bat ''' call "%VSMSBUILDCMD%" msbuild %WORKSPACE%\\MSVC\\myProj.sln ''' } } Jenkins seems to checkout the project to the slave, then delete the checkout and do it again. Am I doing this right? Best regards David Click here<https://www.mailcontrol.com/sr/IrrTHiMxmqLGX2PQPOmvUjZx4naTDky4IA02wTjHK3aWH8iWVYV3XRayNjRai96RFw3aF91WYoFPpv0P1Tfw+Q==> 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7393988197dd47ca933e90d16d9e4343%40EUX13SRV1.EU.NEC.COM<https://groups.google.com/d/msgid/jenkinsci-users/7393988197dd47ca933e90d16d9e4343%40EUX13SRV1.EU.NEC.COM?utm_medium=email&utm_source=footer>. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1683264f57e8439b8d39880e33e17a80%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
