Skip to content

Commit d609e92

Browse files
committed
checkout directly from resolveScm
1 parent 91170f6 commit d609e92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,13 @@ checkout scmGit(
138138

139139
[source,groovy]
140140
----
141-
def resolvedSCMBranch = resolveScm(
141+
checkout resolveScm(
142142
source: gitSource(
143143
credentialsId: 'git-cred',
144144
traits: [cloneOption(cloneOption(depth: 1, shallow: true)), gitBranchDiscovery()]
145145
remote: 'https://github.com/jenkinsci/ws-cleanup-plugin'),
146146
targets: ['main', 'master']
147147
)
148-
checkout resolvedSCMBranch
149148
----
150149

151150
==== Checkout with a narrow refspec

0 commit comments

Comments
 (0)