-
Notifications
You must be signed in to change notification settings - Fork 75
Initialize versionTag for release pipeline #150
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
Conversation
9586865
to
0cb642a
Compare
parameters: | ||
- name: PushToGithub | ||
default: true | ||
default: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has to be true for the automated build to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had changed this to false to test the changes. Have reset it to true.
vmImage: 'windows-latest' | ||
variables: | ||
versionTag: $[ stageDependencies.Compile.Sqlcmd.outputs['getVersion.VERSION_TAG'] ] | ||
- name: versionTag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's different about this syntax that makes it work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just to see if it works. Have added isOutput=true to export the variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shueybubbles @stuartpa I get permission error |
fbebbdf
to
5a800fb
Compare
5ca87d2
to
cec10a1
Compare
I actually had used isOutput instead of isoutput so gave it another shot to see if it works after correcting but it did not. |
For marking the release as 'latest', I don't think any additional changes are needed. |
Write-Host($VERSION_TAG) | ||
- template: build-tag.yml | ||
- script: | | ||
echo $(getVersion.VERSION_TAG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output variables from task of same job are referred using TaskName.VariableName convention as mentioned here.
@shueybubbles Are the changes okay for merge? Changes are validated with this pipeline run. |
versionTag: $[ stageDependencies.Compile.Sqlcmd.outputs['getVersion.VERSION_TAG'] ] | ||
steps: | ||
- template: build-tag.yml | ||
- template: build-common.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to build again, we are downloading the build from the previous stage in the next step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Had added it mistakenly. Removed in last commit.
Resolve comments that have been addressed |
default: | ||
- name: ArtifactName | ||
type: string | ||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intentionally added as a workaround.
In absence of default value, it complains that Parameter 'ArtifactName' must be provided with value. I got this error in 'Validate' but even when ignored and run the pipeline, it still fails with this error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but I thought that was because you added that extra include of this template
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right! Will run it again with the reverted change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated the changes here. No issues seen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves #145 and fixes generation of latest tag for all pipeline stages.