Home > database >  Azure DevOps Release Pipeline Variable Values are not updating
Azure DevOps Release Pipeline Variable Values are not updating

Time:12-22

enter image description hereenter image description hereenter image description hereI'm trying to update Azure DevOps Release Pipeline Variable Values but it is they are not updating.

Used In-line script PowerShell script.

CodePudding user response:

  1. In your script, you are trying to move the value to the time variable but you do not use it.
  2. You can not use a new value of a pipeline variable in the same step through the pipeline variable reference. If you pass a new value with Write-Host "##vso... myvar]$somevalue" you may print it in some next build step: Write-Host "$(myvar)"

Check the documentation:

CodePudding user response:

Even though you could change the initial value of your variables during the pipeline running, I suppose that the variable value you defined in the ui could not be updated after finishing.

If you are going to pass the variables between stages, I suppose that you could refer to output variables.

  • Related