-
Notifications
You must be signed in to change notification settings - Fork 53
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
Unable to publish when running on Azure Pipelines #768
Comments
Also include this variable in the output of the variables written to the log.
Otherwise, calculation of BranchType within Cake.Recipe won't work as expected.
Looks like there is still an underlying issue here. When running on a tagged build, it is necessary to do some additional work, otherwise the BranchType is unknown, which causes sending out tweets/gitter messages etc to not work. |
This is similar to what we have had to do in the GitHub Actions provider, since the branch name is not part of the information that is provided directly. When the branch name contains refs/tags, execute git to find the branch name, otherwise, accept the branch name that is provided.
@gep13 just a thought. Should maybe the twitter and gitter code just consider if the build is tagged, and pretty much ignore everything else? |
@AdmiringWorm I did consider that, but I think that might be a change for another day. Having the actual branch name available is still a good thing to have, and once we have it working reliably, I think we can look to refactor is it no longer becomes a requirement for certain actions. |
i.e. hotfixes. Here, the source branch name only contains the last part, after the last /, which is not initially what we want.
* release/2.2.0: (51 commits) (build) Update github action dependencies when drafting release notes (maint) Added custom step to generate includes.cake script (maint) Add workflow for creating release notes (GH-755) Update JetBrains.ReSharper.CommandLineTools reference from 2020.3.0 to 2020.3.2 (GH-754) Update NuGet.CommandLine reference from 5.8.0 to 5.8.1 (GH-756) Update ReportGenerator reference from 4.8.0 to 4.8.5 (GH-757) Update dotnet-reportgenerator-globaltool reference from 4.8.0 to 4.8.5 (build) Add missing semi-colon (maint) Check for .Net Framework GitVersion (GH-77) Removed logging (GH-768) Attempt to handle multiple lines from git (GH-768) Add more logging (GH-768) Handle additional branch names (GH-768) Added missing context (GH-768) Lookup branch name from git (GH-769) Update Codecov.Tool reference from 1.12.4 to 1.13.0 (GH-770) Update codecov reference from 1.12.4 to 1.13.0 (GH-768) Use BranchSourceName for Branch Name (build) Switch to released version of GitVersion (GH-768) Switch to using SourceBranch ...
Merge branch 'release/2.2.0' * release/2.2.0: (51 commits) (build) Update github action dependencies when drafting release notes (maint) Added custom step to generate includes.cake script (maint) Add workflow for creating release notes (GH-755) Update JetBrains.ReSharper.CommandLineTools reference from 2020.3.0 to 2020.3.2 (GH-754) Update NuGet.CommandLine reference from 5.8.0 to 5.8.1 (GH-756) Update ReportGenerator reference from 4.8.0 to 4.8.5 (GH-757) Update dotnet-reportgenerator-globaltool reference from 4.8.0 to 4.8.5 (build) Add missing semi-colon (maint) Check for .Net Framework GitVersion (GH-77) Removed logging (GH-768) Attempt to handle multiple lines from git (GH-768) Add more logging (GH-768) Handle additional branch names (GH-768) Added missing context (GH-768) Lookup branch name from git (GH-769) Update Codecov.Tool reference from 1.12.4 to 1.13.0 (GH-770) Update codecov reference from 1.12.4 to 1.13.0 (GH-768) Use BranchSourceName for Branch Name (build) Switch to released version of GitVersion (GH-768) Switch to using SourceBranch ...
🎉 This issue has been resolved in version 2.2.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Merge branch 'release/2.2.0' * release/2.2.0: (51 commits) (build) Update github action dependencies when drafting release notes (maint) Added custom step to generate includes.cake script (maint) Add workflow for creating release notes (GH-755) Update JetBrains.ReSharper.CommandLineTools reference from 2020.3.0 to 2020.3.2 (GH-754) Update NuGet.CommandLine reference from 5.8.0 to 5.8.1 (GH-756) Update ReportGenerator reference from 4.8.0 to 4.8.5 (GH-757) Update dotnet-reportgenerator-globaltool reference from 4.8.0 to 4.8.5 (build) Add missing semi-colon (maint) Check for .Net Framework GitVersion (GH-77) Removed logging (GH-768) Attempt to handle multiple lines from git (GH-768) Add more logging (GH-768) Handle additional branch names (GH-768) Added missing context (GH-768) Lookup branch name from git (GH-769) Update Codecov.Tool reference from 1.12.4 to 1.13.0 (GH-770) Update codecov reference from 1.12.4 to 1.13.0 (GH-768) Use BranchSourceName for Branch Name (build) Switch to released version of GitVersion (GH-768) Switch to using SourceBranch ...
When running a tag build on Azure Pipelines, the IsTagged property is false, when it should be true.
Looking that the code, it is using the SourceBranchName, rather than SourceBranch. As per the docs here:
https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#build-variables-devops-services
The latter will only include something like
0.3.0
, where as the logic for IsTagged needs the full branch name, which would berefs/tags/0.3.0
The text was updated successfully, but these errors were encountered: