Basic pipeline questions (using svn)

9 views
Skip to first unread message

David Aldrich

unread,
Apr 20, 2017, 8:45:33 AM4/20/17
to jenkins...@googlegroups.com

Hi

 

Sorry for asking basic questions, but I need some help with my first pipeline. Here’s what I have so far:

 

node { 

stage('Checkout') {

    checkout([$class: 'SubversionSCM',

        additionalCredentials: [],

        excludedCommitMessages: '',

        excludedRegions: '',

        excludedRevprop: '',

        excludedUsers: 'buildbot',

        filterChangelog: false,

        ignoreDirPropChanges: false,

        includedRegions: '',

        locations: [[credentialsId: '086c0d1a-15e7-4cea-9702-7528ac021fab',

            depthOption: 'infinity',

            ignoreExternalsOption: true,

            local: '.',

            remote: "https://172.29.68.12/subversion/Leda/trunk/"]],

        workspaceUpdater: [$class: 'UpdateUpdater']])

}  

}

 

1)      How do I specify a specific node?

2)      How do I emulate the conventional job’s checkout strategy ‘Use ‘svn update’ as much as possible’ so that a checkout is done if the workspace is empty or an update is done if a previous checkout exists?

 

Best regards

 

David

 

Reply all
Reply to author
Forward
0 new messages