Skip to content

Commit

Permalink
updated - V2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bavanari authored and Bavanari committed Jan 25, 2018
1 parent 7c7dd5c commit db78e1d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions BuildReleaseRetentionTask/BuildReleaseRetentionTask.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ function Get-WebClient
$VerbosePreference ='Continue' # equiv to -verbose

# Get the build and release details
$collectionUrl = $env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI
$collectionUrl = $env:SYSTEM_TEAMFOUNDATIONSERVERURI
$teamproject = $env:SYSTEM_TEAMPROJECT
$releaseid = $env:RELEASE_RELEASEID
$buildid = $env:BUILD_BUILDID

Write-Verbose "collectionUrl = [$env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI]"
Write-Verbose "collectionUrl = [$env:SYSTEM_TEAMFOUNDATIONSERVERURI]"
Write-Verbose "teamproject = [$env:SYSTEM_TEAMPROJECT]"
Write-Verbose "releaseid = [$env:RELEASE_RELEASEID]"
Write-Verbose "buildid = [$env:BUILD_BUILDID]"
Expand Down
Binary file added BuildReleaseRetentionTask/icon.ico
Binary file not shown.
Binary file removed BuildReleaseRetentionTask/icon.png
Binary file not shown.
2 changes: 1 addition & 1 deletion BuildReleaseRetentionTask/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"author": "Haribabu, Bavanari",
"version": {
"Major": 1,
"Major": 2,
"Minor": 0,
"Patch": 0
},
Expand Down
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@


tfx extension create --manifest-globs vss-extension.json

### Why do we need this plugin?
When a release has successfully deployed to PRODUCTION environment, we wanted to keep that release defintion and all its associated builds forever. This Release task will automate the process.


### Releases
- 1.0.x - Initial release
- 2.0.x - Updated code to work with VSTS also


## Included Tasks
Expand All @@ -19,5 +17,4 @@ This task sets the 'keep forever' retension flag on a Release and its all associ
* (Advanced) Use use build agents default credentials as opposed to agent token - usually only every needed for TFS usage

-- Below is command to create extension
tfx extension create --manifest-globs vss-extension.json
For More Info on how to create an marketplace extension - https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/node#package-and-publish-your-extension-to-the-marketplace
tfx extension create --manifest-globs vss-extension.json
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "BuildReleaseSetRetention-Tasks",
"version": "1.0.0",
"version": "2.0.0",
"name": "Set Retention forever on a Build Release",
"publisher": "HariBabuBavanari",
"description": "A set of tasks that update TFS 2015 Builds and Releases Retention.",
Expand Down

0 comments on commit db78e1d

Please sign in to comment.