-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users who specify a commitish of "master" may get unexpected behavior #1401
Comments
Good point!
We could have a resource controller that prepares a specific version of the git repo on a PVC and serves it to the various Tasks - not an easy problem to solve though.
Well, the same problem exists with other branches as well...
+1
Nice, this might allow tasks to clone the repo from the correct sha, but they somehow need to lookup into their parent pipeline to find the correct sha. Alternatively could avoid re-cloning a git input resource and use the same input to all tasks, however this poses several issues:
|
This needs to get fixed before beta, and should be resolve, by not using |
TODO before beta release:
|
With #1673 this has completely changed, going forward folks will likely be using Tasks to checkout from git so:
|
Expected Behavior
If a user provides a PipelineResource of type git to a PipelineRun and specifies
master
as the commitish, they probably meant that they want the entire Pipeline to run against the lastest commit at the time the PipelineRun starts.Actual Behavior
What will actually happen is that every Task will re-fetch master when it executes, meaning that every Task in the Pipeline could end up using a different commit.
Additional Info
A couple ideas:
In #1392 we add the ability for the PipelineResource to at least record what commit it was used with.
The text was updated successfully, but these errors were encountered: