xoac / rust-azure-pipelines

Collection of azure pipelines templates for rust
MIT License
44 stars 12 forks source link

Fail to creat GitHub release #14

Closed nbigaouette closed 5 years ago

nbigaouette commented 5 years ago

I want to move away from my custom release job to use this template instead.

Unfortunately I get a weird error in the Create release step:

cd513065-31c4-4f72-9f58-82e356ab3c1d exists true
Computing changes made in this release...
Fetching the latest published release...
No releases are published yet in the repository.
Fetching the initial commit...
##[error]An unexpected error occurred while fetching the initial commit.
##[error]Error: Not Found
##[section]Finishing: Create release

See https://dev.azure.com/nbigaouette/pycors/_build/results?buildId=169 and the associated PR: https://github.com/nbigaouette/pycors/pull/77

Note that I have pushed a tag (v0.1.16-pre) pointing to f203eada65f47c23c5a5e8ad43b208f9fc32d4a0 (in the PR branch) to create the release which I think should still work (you've done the same in PR #13).

I'm not sure where the issue could come from: my repo? the template? azure?

This line here: https://github.com/microsoft/azure-pipelines-tasks/blob/b2608105c535e8cdf3f62d41425d18a83b70a006/Tasks/GitHubReleaseV0/operations/ChangeLog.ts#L52 is the one printing the Fetching the initial commit... string and the error seems to be thrown here: https://github.com/microsoft/azure-pipelines-tasks/blob/b2608105c535e8cdf3f62d41425d18a83b70a006/Tasks/GitHubReleaseV0/operations/ChangeLog.ts#L191

How come azure cannot get my repo's first commit? The only search hit with the error string is this stack overflow question: https://stackoverflow.com/questions/54439519/how-to-create-github-release-with-azure-pipelines-yml which mentions using tagSource: 'Git tag' instead of tagSource: 'auto'.

Any clue?

Thanks a lot!

xoac commented 5 years ago

I think I forgot to add some TODO in this lines that need user manual action.

   github:
#     repositoryName: xoac/rust-azure-pipelines
    gitHubConnection: PipelinesTemplates
#     isPreRelease: true
    repositoryName: xoac/rust-azure-pipelines

You need to change this to your data. I think you try release to my xoac/rust-azure-pipelines repo.

xoac commented 5 years ago

https://github.com/nbigaouette/pycors/pull/77/files#diff-fec826feae04e51c0d94076385408bdcR143

nbigaouette commented 5 years ago

The bug was found and fixed. See https://github.com/nbigaouette/pycors/pull/77#issuecomment-491200935 Thanks! Closing.