azdev-release-orchestrator icon indicating copy to clipboard operation
azdev-release-orchestrator copied to clipboard

Creating Release with Specific Source Version or Build Number

Open benwalpole opened this issue 3 years ago • 6 comments

Hi,

I've managed to get the extension to trigger a release against a specific branch but I want to be able to specify a specific build of that branch. I've tried using the Build Number of the build I want and the Source Version (i.e. Git commit hash) but I always get the message that no builds matching the filter can be found.

Is it possible to do this? I could just be using the wrong YAML parameters.

benwalpole avatar Feb 22 '22 16:02 benwalpole

Hi, you may need to specify both parameters, then both filter will apply:

artifactVersion: YOUR_BUIL_NUMBER (i.e. 20220302.1) artifactBranch: refs/heads/your_branch

I'm also pretty sure if you just specify build number without specifying branch filter - it will work just fine too as the build number is unique.

My guess it didn't work because use specify commit id instead of the build number.

Hope this helps!

dmitryserbin avatar Mar 02 '22 03:03 dmitryserbin

Unfortunately I've tried adding both and just setting the Artifact Version to the Build Number but I get the same error in both cases.

Are you able to share any info on how the AzureDevOps API is being queried to implement the filtering?

benwalpole avatar Mar 02 '22 13:03 benwalpole

Could you please run it with debug mode on and share the logs?

dmitryserbin avatar Mar 02 '22 19:03 dmitryserbin

Yeah sure, I don't fully understand the documentation for debug mode, do i just need to set System.Debug=true on the pipeline?

benwalpole avatar Mar 03 '22 08:03 benwalpole

Either add System.Debug=true or Debug=release-orchestrator:* variable

dmitryserbin avatar Mar 06 '22 20:03 dmitryserbin

hello, are there any updates on this topic? I think I am facing the same issue. Thanks!

radulaurentiu02 avatar Oct 10 '23 12:10 radulaurentiu02