-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move files to make it easier to add more tasks. Add codepush Service …
…Extension
- Loading branch information
Showing
11 changed files
with
218 additions
and
105 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"id": "b69d19a0-7f6d-11e5-a86a-c199aa7a6cf0", | ||
"name": "CodePush", | ||
"friendlyName": "CodePush", | ||
"description": "A VSTS build task for releasing app updates to the CodePush service", | ||
"author": "Microsoft Corporation", | ||
"category": "Deploy", | ||
"visibility": [ | ||
"Build", | ||
"Release" | ||
], | ||
"demands": [], | ||
"version": { | ||
"Major": "1", | ||
"Minor": "0", | ||
"Patch": "1" | ||
}, | ||
"minimumAgentVersion": "1.83.0", | ||
"instanceNameFormat": "Release $(packagePath) to CodePush ($(appName) - $(deploymentName)) ", | ||
"inputs": [ | ||
{ | ||
"name": "authType", | ||
"type": "pickList", | ||
"label": "Authentication Method", | ||
"defaultValue": "ServiceAccount", | ||
"helpMarkDown": "", | ||
"options": { | ||
"ServiceAccount": "Service Account", | ||
"AccessKey": "Access Key" | ||
} | ||
}, | ||
{ | ||
"name": "serviceAccount", | ||
"type": "connectedService:code-push", | ||
"label": "Service Account", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "The VSTS Service Account that specifies the idenity for Code Push.", | ||
"visibleRule": "authType = ServiceAccount" | ||
}, | ||
{ | ||
"name": "accessKey", | ||
"type": "string", | ||
"label": "Access Key", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "Access key used to authenticate with the CodePush service", | ||
"visibleRule": "authType = AccessKey" | ||
}, | ||
{ | ||
"name": "appName", | ||
"type": "string", | ||
"label": "App Name", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "Name of the app you want to release an update for" | ||
}, | ||
{ | ||
"name": "packagePath", | ||
"type": "filePath", | ||
"label": "Package Path", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "Path to the file or directory that contains the content you want to release" | ||
}, | ||
{ | ||
"name": "appStoreVersion", | ||
"type": "string", | ||
"label": "App Store Version", | ||
"defaultValue": "", | ||
"required": true, | ||
"helpMarkDown": "The app store version that this release depends on (must be semver compliant)" | ||
}, | ||
{ | ||
"name": "deploymentName", | ||
"type": "pickList", | ||
"label": "Deployment Name", | ||
"defaultValue": "", | ||
"required": false, | ||
"helpMarkDown": "Name of the deployment under the app which you want to push the release to", | ||
"options": { | ||
"Staging": "Staging", | ||
"Production": "Production" | ||
}, | ||
"properties": { | ||
"EditableOptions": "True" | ||
} | ||
}, | ||
{ | ||
"name": "description", | ||
"type": "string", | ||
"label": "Package Description", | ||
"defaultValue": "", | ||
"required": false, | ||
"helpMarkDown": "Description of the package to be released" | ||
}, | ||
{ | ||
"name": "isMandatory", | ||
"type": "boolean", | ||
"label": "Mandatory", | ||
"defaultValue": false, | ||
"required": false, | ||
"helpMarkDown": "Specifies whether the release should be considered mandatory" | ||
} | ||
], | ||
"execution": { | ||
"Node": { | ||
"target": "CodePush.js", | ||
"argumentFormat": "" | ||
}, | ||
"PowerShell": { | ||
"target": "$(currentDirectory)\\CodePush.ps1", | ||
"argumentFormat": "", | ||
"workingDirectory": "$(currentDirectory)" | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
echo "" | ||
echo "Copyright (c) Microsoft. All rights reserved." | ||
echo "Licensed under the MIT license. See LICENSE file in the project root for full license information." | ||
echo "" | ||
|
||
if ! npm --version > /dev/null ; then | ||
echo "npm not found. please install npm and run again." | ||
return 1; | ||
fi | ||
|
||
if ! tfx --version > /dev/null ; then | ||
echo "tfx-cli not found. installing..." | ||
npm install -g tfx-cli | ||
fi | ||
|
||
echo "Installing Dependencies..." | ||
npm install --only=prod | ||
node bin/tfxupload.js --installonly | ||
|
||
if [ $1 == "create" ] ; then | ||
echo "Creating VSIX..." | ||
tfx extension create --manifest-globs vso-extension-android.json --override '{ "public": true }' | ||
fi | ||
|
||
if [ $1 == "createtest" ] ; then | ||
echo "Creating Test VSIX..." | ||
tfx extension create --manifest-globs vso-extension-android.json --override '{ "public": "false", "name": "Google Play Store Deploy-Dev", "id": "vso-extension-android-dev", "publisher": "ms-mobiledevops-test"}' --share-with mobiledevops x04ty29er --token $PUBLISH_ACCESSTOKEN | ||
fi | ||
|
||
if [ $1 == "publishtest" ] ; then | ||
echo "Creating and publishing test VSIX..." | ||
tfx extension publish --manifest-globs vso-extension-android.json --override '{ "public": "false", "name": "Google Play Store Deploy-Dev", "id": "vso-extension-android-dev", "publisher": "ms-mobiledevops-test"}' --share-with mobiledevops x04ty29er --token $PUBLISH_ACCESSTOKEN | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters