Hi Guys,
I have a customer with two 'checkout' steps in their pipeline script, one
where they have set 'poll: true' and the other 'poll: false'. For example:
pipeline {
agent any
options {
skipDefaultCheckout(true)
}
stages {
stage('A') {
steps {
checkout poll: true, scm: perforce(
credential: '" + CREDENTIAL ',
populate: forceClean(quiet: true),
workspace: manualSpec(name:
'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-A',
spec: clientSpec(view: '//depot/main/A/...
//${P4_CLIENT}/A/...')))
}
}
stage('B') {
steps {
checkout poll: false, scm: perforce(
credential: '" + CREDENTIAL ',
populate: forceClean(quiet: true),
workspace: manualSpec(name:
'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-B',
spec: clientSpec(view: '//depot/main/B/...
//${P4_CLIENT}/B/...')))
}
}
}
}
The problem is that polling (compareRemoteRevisionWith) gets called for
both SCMRevisionState baselines checkout step A and B. I can't see any way
to detect the state of the 'poll' option so I'm unable to skip polling from
compareRemoteRevisionWith.
The SCM getKey() method returns a unique value for each checkout steps, A
and B.
Kind regards,
Paul
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" 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-dev/d00f4d2c-b4de-4c34-bc31-99c4d926aaf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.