[JIRA] (JENKINS-60022) Stages running in different agent checkout different versions

2 views
Skip to first unread message

nicopaez@gmail.com (JIRA)

unread,
Nov 1, 2019, 12:12:02 PM11/1/19
to jenkinsc...@googlegroups.com
Nicolas Paez created an issue
 
Jenkins / Bug JENKINS-60022
Stages running in different agent checkout different versions
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: issue_jenkins.png
Components: pipeline-stage-step-plugin
Created: 2019-11-01 16:11
Environment: Jenkins version 2.202
Labels: pipeline stage agents
Priority: Major Major
Reporter: Nicolas Paez

Given a pipeline with multiple stages and some stages running on different agents, if a new commit is push while the pipeline is running, a stage running later in a different agent will implicitly checkout the new commit instead of the commit that originated the pipeline execution.

 

Steps to reproduce:

  1. Using this repo https://github.com/nicopaez/ejemplo create a pipeline job
  2. Start the pipeline, it will wait for you input after stage 1
  3. Commit+push a change in the repository
  4. Let the pipeline proceed with the execution

Expected behavior: both stages get the same git commit
Actual behavior: both stages are getting different git commits

 

I think the issues is in the implicit checkout operations that is perform on each stage. It seems it is checking out the branch when it should checkout the specific commits that was checkout when the pipeline was started.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages