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

0 views
Skip to first unread message

nicopaez@gmail.com (JIRA)

unread,
Nov 1, 2019, 12:16:02 PM11/1/19
to jenkinsc...@googlegroups.com
Nicolas Paez updated an issue
 
Jenkins / Bug JENKINS-60022
Stages running in different agents checkout different versions
Change By: Nicolas Paez
Summary: Stages running in different agent agents checkout different versions
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:
# Using this repo [https://github.com/nicopaez/ejemplo] create a pipeline job
# Start the pipeline, it will wait for you input after stage 1
# Commit+push a change in the repository
# 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.


 

We verified this issues on 2 different configurations:
* A single instance Jenkins setup using docker agents
* A master-slave Jenkins setup using different server nodes (no docker)
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