A set of tasks that update VSTS Builds and Releases.
This extension is now unpublished from Marketplace. You can choose to uninstall it.
Releases
1.0.x - Initial release
1.1.x - Logic fixed for updating
1.2.x - Added boolean to allow use of default build agent creditials
1.3.x - Fixed bug with handling of defaultcreds
1.4.x - Include PR from insanity13 to handle compress
1.5.x - Allow the build variable updater to be used in a build as well as a release
1.6.x - Update to newer api version to support variable groups and more (issue #168
1.7.x - Isse236 add option to update named list of artifacts
Isse237 allowed reset of retension as well as setting
)
A set of tasks to manage builds, it is assumed these tasks will usually be called from a release pipeline.
Included Tasks
Build Retension Task
This task sets the 'keep forever' retension flag on a build. It takes one parameter, the build selection mode, set to either:
Select only the primary build associated with the release (default)
All the build artifacts associated with the release
A comma separated list of build artifacts
There is also an advanced option
(Advanced) Use use build agents default credentials as opposed to agent token - usually only every needed for TFS usage
Update Build Variable Task
This task allows a variable to be set in a build definition.
The prime use of this task is envisaged to be the updating of a variable that specifies a version number that needs to be incremented when a release to production occurs.
It uses the following parameters
Build selection mode
Only the primary build associated with the release (default)
All the build artifacts associated with the release
A comma separated list of build artifacts
Variable name to update
Method to update the variable
Auto-increment the variable (default)
Specify a value
Value if not set to auto-increment
(Advanced) Use use build agents default credentials as opposed to agent token - usually only every needed for TFS usage
Important: The default rights of a build agent running a release is to not have the permission to edit the build definition. If this task is used without altering these permission you will get a 403 error
Exception calling "UploadString" with "3" argument(s): "The remote server returned an error: (403) Forbidden."
To address this problem
In a browser select the Build tab
Select 'All build definitions', right click and select security