Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

[RP-1048] Allow override to branch and version #13

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

knaveofdiamonds
Copy link
Contributor

This makes it easier to have development branches without needing to commit changes to the pipeline steps file. I've largely just copied how you approached overriding the image tag.

This makes it easier to have development branches without
needing to commit changes to the pipeline steps file.
@@ -61,3 +61,15 @@ func (p *PipelineDefinitionStep) OverrideTag(tag string) {
p.Image = strings.Join(parts, ":")
}
}

func (p *PipelineDefinitionStep) OverrideVersion(version string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version and Branch are public, so we could just set them from outside. I'm not a Go expert so I don't know what the approach towards setters generally is, I guess this works!

Copy link
Collaborator

@me me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@knaveofdiamonds knaveofdiamonds merged commit ac7801b into master Apr 23, 2018
@alexstoick alexstoick deleted the RP-1048/override-step-branch-and-version branch May 2, 2018 09:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants