On Tue, Dec 1, 2020 at 5:32 AM <unlimh...@gmail.com> wrote:

> There is such a jenkins-code:
>
> checkout ([ ...
> extensions: [[$class: 'CheckoutOption', timeout: 180],[$class:
> 'CloneOption', depth: 1, noTags: true, reference: '', shallow: false,
> timeout: 60]],
> ... )]
>
> Why do I get different revisions when I restart the same pipeline, without
> any changes in SCM (github)?
> The latest versions of git & jenkins are installed. Thank you.
> It's a bug in Jenkins? I ask for help and any ideas, because this is very
> urgent and important!
>
>
If it is very urgent and important, then it should be important enough to
provide a detailed description of the precise steps you're taking, a
complete list of the checkout step (without eliding important values like
the branch name), the things you've explored, what you saw in those
explorations, and more.

If there are no new changes in SCM, then I would expect the same commit to
be used each time you run that job on that branch.  Wiithout new commits on
the branch, running the job should use the most recent commit on the branch
that is being used for the checkout.  However, you didn't tell us if this
is a Pipeline job with the script inside the job, a Pipeline job that is
getting the script from SCM, or a Pipeline job that is being defined as
part of a multibranch pipeline.

When you say "restart the same pipeline", do you mean that you press the
"Replay" button for the pipeline?  Do you mean that you press the "Build
now" link?  Do you mean that you're starting the job from a command line
interface call?  Are you starting the job from another job?

Is there something special about the local file system that causes you to
set the checkout timeout (a local file system operation) to allow more time
that the clone timeout (which is a network operation)?

Mark Waite

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEy-jdP2VXGC%3Dum%2B9e7%2BBbEPsrrum6UGLvkYk1sofCN0w%40mail.gmail.com.

Reply via email to