cqse / Teamscale-AzureDevOps-Extension

Plugin for Azure DevOps that provides: Extension for the WorkItems pages to show a TestGap badge, Pipeline Task to upload coverage, findings, and other reports to Teamscale
https://marketplace.visualstudio.com/items?itemName=CQSEGmbH.teamscale-azure-devops-plugin
Apache License 2.0
3 stars 1 forks source link

ReportUploadTask - revision variable with multiple git repositories #42

Open SDohle opened 2 years ago

SDohle commented 2 years ago

If a azure devops pipeline uses multiple git repositories the content of the Build.SourceVersion variable is set to different values depending what triggers the pipeline.

For example in a typical setup:

Triggers and the values of Build.SourceVersion:

Result: If a pipeline is triggered manually or by a change of the pipeline itself the reportUploadTask uses the 'wrong' commitId and the task will fail. `curl: (22) The requested URL returned error: 400 Bad Request

[error]Task failed. Please check the log for further details.

Error: The process 'TeamscaleReportUploader_xxx\1.2.5\curl\windows\curl.exe' failed with exit code 22`

Possible solutions: