Hello Team,
I am planning to trigger my release pipeline through power automate and have use azure devops connector for that . I find ways to set the release variables but could not find how can i set the version of the build for which i want to create the release . could you please tell me how can i set the build number
Hi Phani and team
Have you found the solution? I have the same issue.
Thanks
Hi @Phani,
Thanks for sharing a bit more detail about your requirements.
Within the flow I shared earlier I queued a specific new build. Lets say B (that is selected in the Build Definition ID field). I added a delay which should cover the time which it needs for building, in my setup 1 minute. After that the new release is created with the latest build. Which should be B, because it has just been build via the flow.
There might be several builds for my pipeline ( like A, B, C ) but one will be tested by the testing team and certified i.e for ex B , so when i create a release , i would like to create it for B but not C as C will be the latest one and it will take it by default, if i create a release but would like to have it with B or of my choice
Thanks for the details . I could not find the connection where you are creating this release for that build number only . I see that you are updating the release name using powershell task but how are you setting the build number for that release
Hi @Phani,
I would probably use some variables and a logging command of Azure Pipelines, https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands
You could use a PowerShell task to execute these kind of commands.
Below is an example of a flow which queues a new build, waits for it to finish and creates a release with the latest build number.
The end result should look something like like below:
In Azure DevOps I used the settings below.
1. Build Pipeline has the following variable
2. In the options the Build number format is set to use the new variable.
3. The Release Pipeline has the following variable.
4. The Release Pipeline uses a PowerShell task which updates the release name with a logging command.
Hopefully this helps a bit?
WarrenBelz
146,786
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional