Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ checkout scmGit(

[source,groovy]
----
resolveScm(
def resolvedSCMBranch = resolveScm(
source: gitSource(
credentialsId: 'git-cred',
traits: [cloneOption(cloneOption(depth: 1, shallow: true)), gitBranchDiscovery()]
remote: 'https://github.com/jenkinsci/ws-cleanup-plugin'),
targets: ['main', 'master']
)
checkout resolvedSCMBranch
----

==== Checkout with a narrow refspec
Expand Down