Allow an Azure DevOps pipeline to be run against a specific commit#1614
Open
ValdisThomann wants to merge 2 commits intoOctopusDeploy:masterfrom
Open
Allow an Azure DevOps pipeline to be run against a specific commit#1614ValdisThomann wants to merge 2 commits intoOctopusDeploy:masterfrom
ValdisThomann wants to merge 2 commits intoOctopusDeploy:masterfrom
Conversation
|
Start Hyponome locally |
hnrkndrssn
reviewed
Aug 29, 2025
Contributor
hnrkndrssn
left a comment
There was a problem hiding this comment.
Hi @ValdisThomann, thank you for your contribution.
The change looks good, I just have a question I'd like to confirm.
When passing in both branch and commit, the run will trigger for the commit even if the commit does not exist on the branch passed in, is this something you took into consideration as part of this change, could this create confusion if someone were to specify both branch and commit in their step?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
We run end-to-end tests in an Azure DevOps pipeline at the end of an Octopus deployment. We need to target the specific git commit of the end-to-end tests that align with the packages that have been deployed by the pipeline.
Results
Allows the user to optionally provide a git commit hash/id against which to run the Azure DevOps pipeline. If this parameter is left blank it will default to the latest commit.
Before
After
Pre-requisites
Idshould be a GUID that is not00000000-0000-0000-0000-000000000000Idproperty (updating theIdwill break the Library sync functionality in Octopus).Versionshould be incremented, otherwise the integration with Octopus won't update the step template correctly$LastModifiedByfield must be present, and (optionally) updated with the correct author(Not applicable)
Categoryhas been created:{categoryname}.pngmust be present under thestep-templates/logosfolderswitchin thehumanizefunction ingulpfile.babel.jsmust have acasestatement corresponding to it