Compare commits
335 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62f943a7b7 | ||
|
|
0b2f796e4d | ||
|
|
e971e77318 | ||
|
|
b925f8e478 | ||
|
|
a33003e772 | ||
|
|
a448a9f0a2 | ||
|
|
2d2c6d300f | ||
|
|
f9651f49f0 | ||
|
|
4c753ece22 | ||
|
|
3de8a57a92 | ||
|
|
18efce22d9 | ||
|
|
4ace268ae2 | ||
|
|
6a7df9e3f1 | ||
|
|
a7fd499098 | ||
|
|
b55b3344de | ||
|
|
965ad03650 | ||
|
|
9a35a04f4c | ||
|
|
b7cd8c7635 | ||
|
|
936c2a5f80 | ||
|
|
f9e93cf489 | ||
|
|
246501445f | ||
|
|
5576f1f4f3 | ||
|
|
4b8e1b04eb | ||
|
|
f6df8a60a7 | ||
|
|
6eb9c9d972 | ||
|
|
e72a3b732f | ||
|
|
512189b67e | ||
|
|
04dabe3db9 | ||
|
|
a5bd3bccab | ||
|
|
ace779fa65 | ||
|
|
e36b091f69 | ||
|
|
0f5d09ce56 | ||
|
|
ae681f57e6 | ||
|
|
26360d9b0f | ||
|
|
c4fd6f73e9 | ||
|
|
b3e9769761 | ||
|
|
d08937d559 | ||
|
|
3ae78bd823 | ||
|
|
d7bba81943 | ||
|
|
302eb63bc1 | ||
|
|
4c0ce0e112 | ||
|
|
a7224f5869 | ||
|
|
00d67e69f0 | ||
|
|
6ef8699cb2 | ||
|
|
1c12327cd0 | ||
|
|
ea3b60afaa | ||
|
|
fd856af2cd | ||
|
|
51169613c9 | ||
|
|
02ac2511c1 | ||
|
|
46bb297e3e | ||
|
|
e211644340 | ||
|
|
ccedb16304 | ||
|
|
314873afa2 | ||
|
|
69f493254d | ||
|
|
b93fdb9f59 | ||
|
|
4a23953d2e | ||
|
|
00539659e4 | ||
|
|
8d90ff1842 | ||
|
|
1778633d62 | ||
|
|
87f80d7685 | ||
|
|
9215444fd4 | ||
|
|
560c7a0e96 | ||
|
|
c905369287 | ||
|
|
1fd1ca1fb0 | ||
|
|
1e6fbb3acf | ||
|
|
46a847d957 | ||
|
|
3fd28bf770 | ||
|
|
693e190368 | ||
|
|
d8d401d400 | ||
|
|
8050d189d9 | ||
|
|
9be5ab0ab2 | ||
|
|
5d833b4a30 | ||
|
|
79ec260c7b | ||
|
|
143cd1d6b4 | ||
|
|
94bad18ff9 | ||
|
|
1ffab4eee7 | ||
|
|
889421767e | ||
|
|
1b4a8605bf | ||
|
|
b2242eacc7 | ||
|
|
ec05ff6110 | ||
|
|
25b76a02c4 | ||
|
|
a4fbf1640e | ||
|
|
ef496a434c | ||
|
|
bb50ca9d18 | ||
|
|
2477022a3e | ||
|
|
b7ffed5010 | ||
|
|
8af03f1f61 | ||
|
|
d779553309 | ||
|
|
9c7d40885e | ||
|
|
8603a1a43d | ||
|
|
6aebf267ef | ||
|
|
d33c84fe71 | ||
|
|
81b9d1c9e4 | ||
|
|
cd5cff4f8f | ||
|
|
74aff34782 | ||
|
|
5c061609d3 | ||
|
|
0642b32d33 | ||
|
|
cadfeb7381 | ||
|
|
f0bb3abe8b | ||
|
|
678e06d463 | ||
|
|
a679eac749 | ||
|
|
4cd49e821c | ||
|
|
a975b7f89d | ||
|
|
af225a20cb | ||
|
|
d9f24aeafb | ||
|
|
51e458281f | ||
|
|
02941dc41f | ||
|
|
b283fb5ad9 | ||
|
|
9f1f69cf98 | ||
|
|
f0e34f135f | ||
|
|
b27c54fee2 | ||
|
|
57b8ebc3ab | ||
|
|
210baa122f | ||
|
|
3403009677 | ||
|
|
e257e839f9 | ||
|
|
7a13923831 | ||
|
|
36d1781472 | ||
|
|
0333200fa7 | ||
|
|
31856d2b28 | ||
|
|
a80f1b0a3e | ||
|
|
9d4de0b88b | ||
|
|
e0d031e9d5 | ||
|
|
7c8ff03895 | ||
|
|
c123b50f14 | ||
|
|
55568d7bb0 | ||
|
|
99a374272e | ||
|
|
c564e77502 | ||
|
|
cb93186e87 | ||
|
|
79a82ba1df | ||
|
|
2fcc9edf8b | ||
|
|
48f9f6b568 | ||
|
|
3e1a1ed2b2 | ||
|
|
75f1739323 | ||
|
|
94003bfe72 | ||
|
|
e4f76d5322 | ||
|
|
5d34586e84 | ||
|
|
25ca642ba4 | ||
|
|
80fb4befd7 | ||
|
|
af9c916619 | ||
|
|
6833f4f03e | ||
|
|
e710d248d1 | ||
|
|
b5f0884321 | ||
|
|
30b450f49e | ||
|
|
706774a012 | ||
|
|
0949b64a2c | ||
|
|
22c4681f06 | ||
|
|
b7f3901fab | ||
|
|
7f0e122205 | ||
|
|
46ab5bb847 | ||
|
|
574e4bf6f9 | ||
|
|
b5e771cb02 | ||
|
|
e136053d89 | ||
|
|
2112274715 | ||
|
|
b37803bb5e | ||
|
|
f9c8e9afff | ||
|
|
58bd1df6a6 | ||
|
|
527a545c36 | ||
|
|
00a24c1bef | ||
|
|
8f2f18a70f | ||
|
|
88fd806149 | ||
|
|
fe551402c3 | ||
|
|
7f5d753447 | ||
|
|
6f8028bc82 | ||
|
|
0c1bb4d811 | ||
|
|
d8b87a0f36 | ||
|
|
732f4928bc | ||
|
|
58e3f4e1e6 | ||
|
|
3257d5bf64 | ||
|
|
f67ed1ef28 | ||
|
|
13f5ac7408 | ||
|
|
fbb7ca09b3 | ||
|
|
376893bf5b | ||
|
|
e3cd5eb8a5 | ||
|
|
d8787a4268 | ||
|
|
6317db89ba | ||
|
|
3b79697c05 | ||
|
|
27367974e6 | ||
|
|
1788cd4d6f | ||
|
|
38272c0592 | ||
|
|
81152314d4 | ||
|
|
36209f8002 | ||
|
|
6260a6a905 | ||
|
|
28404d0be2 | ||
|
|
b6960d1589 | ||
|
|
1909d0d4e5 | ||
|
|
22dbdffab4 | ||
|
|
48369d0af8 | ||
|
|
12d86ff2f0 | ||
|
|
4a7338f45a | ||
|
|
07d42eefcf | ||
|
|
6dfe406088 | ||
|
|
2859f8cbd1 | ||
|
|
3122616c1f | ||
|
|
4a4ebd466e | ||
|
|
10703e9467 | ||
|
|
9ae211b0cb | ||
|
|
3020c81b28 | ||
|
|
f2089bbb35 | ||
|
|
6e71cfb6b1 | ||
|
|
712b542d47 | ||
|
|
5b15fd4add | ||
|
|
60fd097914 | ||
|
|
960338bcea | ||
|
|
c31907ac18 | ||
|
|
a2f365cab2 | ||
|
|
e1e31a379b | ||
|
|
2057da769f | ||
|
|
1d85c561e4 | ||
|
|
1dc5944fee | ||
|
|
571e3c886e | ||
|
|
a3dec8d073 | ||
|
|
b8d27e460b | ||
|
|
3172154079 | ||
|
|
4e4d5479ae | ||
|
|
fd04b1fa3b | ||
|
|
f930092d92 | ||
|
|
13f6391e78 | ||
|
|
99fed08849 | ||
|
|
05eb2a3d8f | ||
|
|
604290d0b3 | ||
|
|
5ae1e49b30 | ||
|
|
c9e3bd0125 | ||
|
|
593f0ef445 | ||
|
|
631e55cbf4 | ||
|
|
3318dd5073 | ||
|
|
274da1a0fa | ||
|
|
b6034fb7e2 | ||
|
|
627d003757 | ||
|
|
343eabb4e2 | ||
|
|
a049e9b6f6 | ||
|
|
0d5d730d0d | ||
|
|
7f9dcba752 | ||
|
|
e80e47e735 | ||
|
|
2690f37786 | ||
|
|
5c4fb6ec6b | ||
|
|
0ccd60100c | ||
|
|
acb8ced58e | ||
|
|
726a0a0b41 | ||
|
|
b06083a2ec | ||
|
|
ddf73f09cf | ||
|
|
cf81750a11 | ||
|
|
0e8b523250 | ||
|
|
80481e6170 | ||
|
|
9ae03b1577 | ||
|
|
612f8717b5 | ||
|
|
13805f8688 | ||
|
|
985de5714f | ||
|
|
a2f3ef0512 | ||
|
|
7c15c4c3da | ||
|
|
1bd0d6ca81 | ||
|
|
038decac79 | ||
|
|
7a3398fc19 | ||
|
|
4b0b5d7ab5 | ||
|
|
7768b44eb7 | ||
|
|
788800ab1d | ||
|
|
e778ede2d1 | ||
|
|
5718f250af | ||
|
|
e282982f62 | ||
|
|
d95dee3516 | ||
|
|
c390b904c1 | ||
|
|
346e27f10b | ||
|
|
88be0184aa | ||
|
|
7514ca5282 | ||
|
|
2d2a17becd | ||
|
|
0f2ff05586 | ||
|
|
641823aef3 | ||
|
|
fe485e5aab | ||
|
|
b0dbca979a | ||
|
|
916fe8cd22 | ||
|
|
e833ebcfce | ||
|
|
4dc8ca33d2 | ||
|
|
cf8a2d8310 | ||
|
|
6643846bbb | ||
|
|
a0d003d148 | ||
|
|
571cacf6d9 | ||
|
|
b7fcc8e701 | ||
|
|
3d22c1208a | ||
|
|
4ff3b135ec | ||
|
|
c39eddbc81 | ||
|
|
4bda6b5eba | ||
|
|
edd278e744 | ||
|
|
c7eb02e614 | ||
|
|
6cbe5073c3 | ||
|
|
0e2e93e6aa | ||
|
|
274c9b2e99 | ||
|
|
dab6b01596 | ||
|
|
b98ee9d8b2 | ||
|
|
aba63c943d | ||
|
|
1be05ba386 | ||
|
|
632a7fdad0 | ||
|
|
b677d43869 | ||
|
|
1c5c0557da | ||
|
|
f17101e556 | ||
|
|
7dee6ba225 | ||
|
|
237764149f | ||
|
|
5021e6bca9 | ||
|
|
b541d2f286 | ||
|
|
2e93547963 | ||
|
|
22c25b670a | ||
|
|
32247c8ed9 | ||
|
|
b882929b02 | ||
|
|
18ac32b856 | ||
|
|
57e92d55a3 | ||
|
|
ad52a31bda | ||
|
|
b8df3542ce | ||
|
|
4090f70509 | ||
|
|
5f2a8b7486 | ||
|
|
9a0c41862a | ||
|
|
12398bf4da | ||
|
|
969586f961 | ||
|
|
0df4aab1a8 | ||
|
|
ca2c8097d2 | ||
|
|
300345b152 | ||
|
|
ef8d92d27a | ||
|
|
5e98e2ad3c | ||
|
|
1e937858a2 | ||
|
|
0eae1609b6 | ||
|
|
ee69b451cc | ||
|
|
5ed9f1a870 | ||
|
|
8c92ba9adb | ||
|
|
df7bec89f0 | ||
|
|
b9310160df | ||
|
|
0dc080dece | ||
|
|
e15823128e | ||
|
|
43b2de33fa | ||
|
|
ab48b3cddc | ||
|
|
3f6597b086 | ||
|
|
65b3a90f3f | ||
|
|
88007cb218 | ||
|
|
036fb8fb1d | ||
|
|
019e954030 | ||
|
|
f09d4de93d | ||
|
|
af8f283fe6 | ||
|
|
8e8806b8a9 | ||
|
|
28adff5627 |
16
.editorconfig
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
indent_size = 2
|
||||||
7
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: npm
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
open-pull-requests-limit: 10
|
||||||
18
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 90
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 30
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- pinned
|
||||||
|
- security
|
||||||
|
- bug
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: stale
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. After 30 days from now, it will be closed if no further
|
||||||
|
activity occurs. Thank you for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
||||||
29
.github/workflows/ci.yml
vendored
@@ -1,5 +1,12 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -8,18 +15,24 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Fetch tags and master for GitVersion
|
- name: Fetch all history for all tags and branches
|
||||||
run: |
|
run: |
|
||||||
git fetch --tags
|
git fetch --prune --unshallow
|
||||||
git branch --create-reflog master origin/master
|
- run: |
|
||||||
|
npm install
|
||||||
|
npm run format-check
|
||||||
|
npm run build:github
|
||||||
|
npm run build:azure
|
||||||
|
name: Build code
|
||||||
- name: Install GitVersion
|
- name: Install GitVersion
|
||||||
uses: ./setup-gitversion
|
uses: ./gitversion/setup
|
||||||
with:
|
with:
|
||||||
versionSpec: '5.1.x'
|
versionSpec: '5.x'
|
||||||
- name: Use GitVersion
|
- name: Use GitVersion
|
||||||
id: gitversion # step id used as reference for output values
|
id: gitversion # step id used as reference for output values
|
||||||
uses: ./execute-gitversion
|
uses: ./gitversion/execute
|
||||||
- run: |
|
- run: |
|
||||||
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}"
|
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}"
|
||||||
|
|||||||
40
.github/workflows/release.yml
vendored
@@ -11,23 +11,37 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Fetch tags and master for GitVersion
|
- name: Fetch all history for all tags and branches
|
||||||
run: |
|
run: |
|
||||||
git fetch --tags
|
git fetch --prune --unshallow
|
||||||
git branch --create-reflog master origin/master
|
|
||||||
- name: Install GitVersion
|
|
||||||
uses: ./setup-gitversion
|
|
||||||
with:
|
|
||||||
versionSpec: '5.1.x'
|
|
||||||
- name: Use GitVersion
|
|
||||||
id: gitversion # step id used as reference for output values
|
|
||||||
uses: ./execute-gitversion
|
|
||||||
- run: |
|
- run: |
|
||||||
npm install
|
npm install
|
||||||
|
npm run build:github
|
||||||
|
npm run build:azure
|
||||||
|
|
||||||
|
# npm run compress:github
|
||||||
|
# npm run compress:azure
|
||||||
|
name: Build code
|
||||||
|
- name: Install GitVersion
|
||||||
|
uses: ./gitversion/setup
|
||||||
|
with:
|
||||||
|
versionSpec: '5.x'
|
||||||
|
- name: Use GitVersion
|
||||||
|
id: gitversion # step id used as reference for output values
|
||||||
|
uses: ./gitversion/execute
|
||||||
|
- run: |
|
||||||
$date = Get-Date -format "yyMMddHHmm"
|
$date = Get-Date -format "yyMMddHHmm"
|
||||||
$version = "${{steps.gitversion.outputs.majorMinorPatch}}.$date"
|
$version = "${{steps.gitversion.outputs.majorMinorPatch}}.$date"
|
||||||
$override = '{\"version\": \"' + $version + '\"}'
|
$major = "${{steps.gitversion.outputs.major}}"
|
||||||
npm run publish-azure -- --token ${{ secrets.TFX_TOKEN }} --override $override
|
$minor = "${{steps.gitversion.outputs.minor}}"
|
||||||
|
$patch = "${{steps.gitversion.outputs.patch}}"
|
||||||
|
|
||||||
|
. .\dist\azure\update-version.ps1
|
||||||
|
update-manifest .\dist\azure\vss-extension.json -Version $version
|
||||||
|
dir -r .\dist\**\task.json | % { update-task $_ -Major $major -Minor $minor -Patch $patch }
|
||||||
|
|
||||||
|
npm run publish:azure -- --token ${{ secrets.TFX_TOKEN }}
|
||||||
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
name: Publish Azure extension
|
name: Publish Azure extension
|
||||||
|
|||||||
2
.prettierignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules/
|
||||||
|
src/*/node_modules/
|
||||||
11
.prettierrc.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"printWidth": 80,
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": false,
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"parser": "typescript"
|
||||||
|
}
|
||||||
54
.vscode/launch.json
vendored
@@ -5,40 +5,52 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
|
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "tsc: build - src/azure/tsconfig.json",
|
"preLaunchTask": "Build-Mock",
|
||||||
"name": "Run Azure Pipeline (setup) Task",
|
"name": "Debug Mock Setup GitVersion",
|
||||||
"program": "${workspaceFolder}/src/azure/setup.ts",
|
"program": "${workspaceFolder}/dist/mock/gitversion/setup/bundle.js",
|
||||||
"outFiles": ["${workspaceFolder}/**/*.js"]
|
"outFiles": [ "${workspaceFolder}/**/*.js" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "tsc: build - src/github/tsconfig.json",
|
"preLaunchTask": "Build-Azure",
|
||||||
"name": "Run GitHub Actions (setup)",
|
"name": "Debug Azure Setup GitVersion",
|
||||||
"program": "${workspaceFolder}/src/github/setup.ts",
|
"program": "${workspaceFolder}/dist/azure/gitversion/setup/bundle.js",
|
||||||
"outFiles": ["${workspaceFolder}/**/*.js"]
|
"outFiles": [ "${workspaceFolder}/**/*.js" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "tsc: build - src/azure/tsconfig.json",
|
"preLaunchTask": "Build-GitHub",
|
||||||
"name": "Run Azure Pipeline (execute) Task",
|
"name": "Debug GitHub Setup GitVersion",
|
||||||
"program": "${workspaceFolder}/src/azure/execute.ts",
|
"program": "${workspaceFolder}/dist/github/gitversion/setup/bundle.js",
|
||||||
"outFiles": ["${workspaceFolder}/**/*.js"]
|
"outFiles": [ "${workspaceFolder}/**/*.js" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "tsc: build - src/github/tsconfig.json",
|
"preLaunchTask": "Build-Mock",
|
||||||
"name": "Run GitHub Actions (execute)",
|
"name": "Debug Mock Execute GitVersion",
|
||||||
"program": "${workspaceFolder}/src/github/execute.ts",
|
"program": "${workspaceFolder}/dist/mock/gitversion/execute/bundle.js",
|
||||||
"outFiles": ["${workspaceFolder}/**/*.js"]
|
"outFiles": [ "${workspaceFolder}/**/*.js" ]
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "Build-Azure",
|
||||||
|
"name": "Debug Azure Execute GitVersion",
|
||||||
|
"program": "${workspaceFolder}/dist/azure/gitversion/execute/bundle.js",
|
||||||
|
"outFiles": [ "${workspaceFolder}/**/*.js" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "Build-GitHub",
|
||||||
|
"name": "Debug GitHub Execute GitVersion",
|
||||||
|
"program": "${workspaceFolder}/dist/github/gitversion/execute/bundle.js",
|
||||||
|
"outFiles": [ "${workspaceFolder}/**/*.js" ]
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
22
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build-Mock",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "build:mock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build-Azure",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "build:azure"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build-GitHub",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "build:github"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
75
README.md
@@ -2,73 +2,28 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
GitHub Actions that allow to install and use the GitVersion and GitReleaseManager tools
|
GitHub Actions that allow the setup and use of the [GitVersion](https://github.com/GitTools/GitVersion) and [GitReleaseManager](https://github.com/GitTools/GitReleaseManager) tools.
|
||||||
|
|
||||||
[](https://github.com/GitTools/actions/actions)
|
[](https://github.com/GitTools/actions/actions)
|
||||||
|
[](https://github.com/GitTools/actions/actions)
|
||||||
|
|
||||||
|
[](https://github.com/GitTools/actions/releases/latest)
|
||||||
|
|
||||||
|
[](https://marketplace.visualstudio.com/items?itemName=gittools.gittools)
|
||||||
|
[](https://github.com/marketplace/actions/gittools)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
See [setup](setup-gitversion/action.yml) and [usage](execute-gitversion/action.yml)
|
### GitVersion
|
||||||
|
|
||||||
## Dependency
|
Examples for usage of **GitVersion**:
|
||||||
|
|
||||||
There are two step dependencies that are required in your workflow before running this action. You must checkout your Git repository and then fetch the master branch and tags.
|
- [GitHub Actions](docs/examples/github/gitversion/index.md)
|
||||||
|
- [Azure Pipelines tasks](docs/examples/azure/gitversion/index.md)
|
||||||
|
|
||||||
```yaml
|
### GitReleaseManager
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
- name: Fetch tags and master for GitVersion
|
|
||||||
run: |
|
|
||||||
git fetch --tags
|
|
||||||
git branch --create-reflog master origin/master
|
|
||||||
```
|
|
||||||
|
|
||||||
Basic:
|
Examples for usage of **GitReleaseManager**:
|
||||||
|
|
||||||
```yaml
|
- [GitHub Actions](docs/examples/github/gitreleasemanager/index.md)
|
||||||
steps:
|
- [Azure Pipelines tasks](docs/examples/azure/gitreleasemanager/index.md)
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Fetch tags and master for GitVersion
|
|
||||||
run: |
|
|
||||||
git fetch --tags
|
|
||||||
git branch --create-reflog master origin/master
|
|
||||||
- name: Install GitVersion
|
|
||||||
uses: gittools/actions/setup-gitversion@v0.3
|
|
||||||
with:
|
|
||||||
versionSpec: '5.1.x'
|
|
||||||
- name: Use GitVersion
|
|
||||||
id: gitversion # step id used as reference for output values
|
|
||||||
uses: gittools/actions/execute-gitversion@v0.3
|
|
||||||
- run: |
|
|
||||||
echo "Major: ${{ steps.gitversion.outputs.major }}"
|
|
||||||
echo "Minor: ${{ steps.gitversion.outputs.minor }}"
|
|
||||||
echo "Patch: ${{ steps.gitversion.outputs.patch }}"
|
|
||||||
echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}"
|
|
||||||
echo "PreReleaseTagWithDash: ${{ steps.gitversion.outputs.preReleaseTagWithDash }}"
|
|
||||||
echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}"
|
|
||||||
echo "PreReleaseNumber: ${{ steps.gitversion.outputs.preReleaseNumber }}"
|
|
||||||
echo "WeightedPreReleaseNumber: ${{ steps.gitversion.outputs.weightedPreReleaseNumber }}"
|
|
||||||
echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}"
|
|
||||||
echo "BuildMetaDataPadded: ${{ steps.gitversion.outputs.buildMetaDataPadded }}"
|
|
||||||
echo "FullBuildMetaData: ${{ steps.gitversion.outputs.fullBuildMetaData }}"
|
|
||||||
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
|
|
||||||
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
|
|
||||||
echo "LegacySemVer: ${{ steps.gitversion.outputs.legacySemVer }}"
|
|
||||||
echo "LegacySemVerPadded: ${{ steps.gitversion.outputs.legacySemVerPadded }}"
|
|
||||||
echo "AssemblySemVer: ${{ steps.gitversion.outputs.assemblySemVer }}"
|
|
||||||
echo "AssemblySemFileVer: ${{ steps.gitversion.outputs.assemblySemFileVer }}"
|
|
||||||
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}"
|
|
||||||
echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}"
|
|
||||||
echo "BranchName: ${{ steps.gitversion.outputs.branchName }}"
|
|
||||||
echo "Sha: ${{ steps.gitversion.outputs.sha }}"
|
|
||||||
echo "ShortSha: ${{ steps.gitversion.outputs.shortSha }}"
|
|
||||||
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}"
|
|
||||||
echo "NuGetVersion: ${{ steps.gitversion.outputs.nuGetVersion }}"
|
|
||||||
echo "NuGetPreReleaseTagV2: ${{ steps.gitversion.outputs.nuGetPreReleaseTagV2 }}"
|
|
||||||
echo "NuGetPreReleaseTag: ${{ steps.gitversion.outputs.nuGetPreReleaseTag }}"
|
|
||||||
echo "VersionSourceSha: ${{ steps.gitversion.outputs.versionSourceSha }}"
|
|
||||||
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}"
|
|
||||||
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}"
|
|
||||||
echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}"
|
|
||||||
```
|
|
||||||
|
|||||||
13
action.yml
@@ -1,18 +1,9 @@
|
|||||||
name: use-actions
|
name: GitTools
|
||||||
description: GitHub Action for Easy Semantic Versioning with GitVersion. Installs the specific version of GitVersion.Tool
|
description: Build tasks for easy semantic versioning for projects using Git and release management.
|
||||||
author: GitTools
|
author: GitTools
|
||||||
branding:
|
branding:
|
||||||
color: gray-dark
|
color: gray-dark
|
||||||
icon: git-pull-request
|
icon: git-pull-request
|
||||||
inputs:
|
|
||||||
versionSpec:
|
|
||||||
description: Required version in the form of 5.x or exact version like 5.0.0
|
|
||||||
required: true
|
|
||||||
default: ''
|
|
||||||
includePrerelease:
|
|
||||||
description: Include pre-release versions when matching a version
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node12
|
||||||
main: dist/github/setup/index.js
|
main: dist/github/setup/index.js
|
||||||
|
|||||||
16726
dist/azure/execute-gitversion/index.js
vendored
14
dist/azure/execute-gitversion/lib.json
vendored
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"messages": {
|
|
||||||
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
|
||||||
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
|
||||||
"TOOL_LIB_Downloading": "Downloading: %s",
|
|
||||||
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
|
||||||
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
|
||||||
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
|
||||||
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
|
||||||
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
|
||||||
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
|
||||||
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
36
dist/azure/execute-gitversion/lib1.json
vendored
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
"messages": {
|
|
||||||
"LIB_UnhandledEx": "Unhandled: %s",
|
|
||||||
"LIB_FailOnCode": "Failure return code: %d",
|
|
||||||
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
|
||||||
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
|
||||||
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
|
||||||
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
|
||||||
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
|
||||||
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
|
||||||
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
|
||||||
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
|
||||||
"LIB_ReturnCode": "Return code: %d",
|
|
||||||
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
|
||||||
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
|
||||||
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
|
||||||
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
|
||||||
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
|
||||||
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
|
||||||
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
|
||||||
"LIB_ParameterIsRequired": "%s not supplied",
|
|
||||||
"LIB_InputRequired": "Input required: %s",
|
|
||||||
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
|
||||||
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
|
||||||
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
|
||||||
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
|
||||||
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
|
||||||
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
|
||||||
"LIB_PathNotFound": "Not found %s: %s",
|
|
||||||
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
|
||||||
"LIB_OperationFailed": "Failed %s: %s",
|
|
||||||
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
|
||||||
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
|
||||||
"LIB_PlatformNotSupported": "Platform not supported: %s"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
19240
dist/azure/gitreleasemanager/addasset/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/addasset/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/addasset/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
67
dist/azure/gitreleasemanager/addasset/task.json
vendored
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
"id": "b803651c-21ac-4851-9fbf-c75b0e82e4c5",
|
||||||
|
"name": "gitreleasemanager/addasset",
|
||||||
|
"friendlyName": "Add Asset GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/addasset",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The owner of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The owner of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "repository",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "token",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The access token to access GitHub with",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The access token to access GitHub with"
|
||||||
|
}, {
|
||||||
|
"name": "tagName",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the release",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the release"
|
||||||
|
}, {
|
||||||
|
"name": "assets",
|
||||||
|
"type": "multiLine",
|
||||||
|
"label": "Path(s) to the file(s) to include in the release",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "Path(s) to the file(s) to include in the release. Separated by newline"
|
||||||
|
}, {
|
||||||
|
"name": "targetDirectory",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The directory on which GitReleaseManager should be executed. Defaults to current directory",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The directory on which GitReleaseManager should be executed. Defaults to current directory"
|
||||||
|
}]
|
||||||
|
}
|
||||||
19240
dist/azure/gitreleasemanager/close/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/close/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/close/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
60
dist/azure/gitreleasemanager/close/task.json
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"id": "f5304356-f6e3-48e9-9b65-a9efa41ce7a2",
|
||||||
|
"name": "gitreleasemanager/close",
|
||||||
|
"friendlyName": "Close GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/close",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The owner of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The owner of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "repository",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "token",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The access token to access GitHub with",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The access token to access GitHub with"
|
||||||
|
}, {
|
||||||
|
"name": "milestone",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The milestone to use",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The milestone to use"
|
||||||
|
}, {
|
||||||
|
"name": "targetDirectory",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The directory on which GitReleaseManager should be executed. Defaults to current directory",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The directory on which GitReleaseManager should be executed. Defaults to current directory"
|
||||||
|
}]
|
||||||
|
}
|
||||||
19240
dist/azure/gitreleasemanager/create/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/create/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/create/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
95
dist/azure/gitreleasemanager/create/task.json
vendored
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
{
|
||||||
|
"id": "c77d38be-46a9-4ef1-a181-2d6050ed23d2",
|
||||||
|
"name": "gitreleasemanager/create",
|
||||||
|
"friendlyName": "Create GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/create",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The owner of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The owner of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "repository",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "token",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The access token to access GitHub with",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The access token to access GitHub with"
|
||||||
|
}, {
|
||||||
|
"name": "milestone",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The milestone to use",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The milestone to use"
|
||||||
|
}, {
|
||||||
|
"name": "name",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the release",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The name of the release"
|
||||||
|
}, {
|
||||||
|
"name": "inputFilePath",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The path to the file to be used as the content of the release notes",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The path to the file to be used as the content of the release notes"
|
||||||
|
}, {
|
||||||
|
"name": "isPreRelease",
|
||||||
|
"type": "boolean",
|
||||||
|
"label": "Creates the release as a pre-release",
|
||||||
|
"defaultValue": "false",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "Creates the release as a pre-release"
|
||||||
|
}, {
|
||||||
|
"name": "targetcommitish",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The commit to tag. Can be a branch or SHA. Defaults to repository's default branch",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The commit to tag. Can be a branch or SHA. Defaults to repository's default branch"
|
||||||
|
}, {
|
||||||
|
"name": "targetDirectory",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The directory on which GitReleaseManager should be executed. Defaults to current directory",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The directory on which GitReleaseManager should be executed. Defaults to current directory"
|
||||||
|
}, {
|
||||||
|
"name": "assets",
|
||||||
|
"type": "multiLine",
|
||||||
|
"label": "Path(s) to the file(s) to include in the release",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "Path(s) to the file(s) to include in the release. Separated by newline"
|
||||||
|
}]
|
||||||
|
}
|
||||||
19240
dist/azure/gitreleasemanager/discard/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/discard/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/discard/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
60
dist/azure/gitreleasemanager/discard/task.json
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"id": "9ae78b66-6100-4522-8106-b7ae00bbfcdf",
|
||||||
|
"name": "gitreleasemanager/discard",
|
||||||
|
"friendlyName": "Discard GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/discard",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The owner of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The owner of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "repository",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "token",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The access token to access GitHub with",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The access token to access GitHub with"
|
||||||
|
}, {
|
||||||
|
"name": "milestone",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The milestone to use",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The milestone to use"
|
||||||
|
}, {
|
||||||
|
"name": "targetDirectory",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The directory on which GitReleaseManager should be executed. Defaults to current directory",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The directory on which GitReleaseManager should be executed. Defaults to current directory"
|
||||||
|
}]
|
||||||
|
}
|
||||||
19240
dist/azure/gitreleasemanager/open/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/open/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/open/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
60
dist/azure/gitreleasemanager/open/task.json
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"id": "5d437bf5-f193-4449-b531-c4c69eebaa48",
|
||||||
|
"name": "gitreleasemanager/open",
|
||||||
|
"friendlyName": "Open GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/open",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The owner of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The owner of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "repository",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "token",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The access token to access GitHub with",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The access token to access GitHub with"
|
||||||
|
}, {
|
||||||
|
"name": "milestone",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The milestone to use",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The milestone to use"
|
||||||
|
}, {
|
||||||
|
"name": "targetDirectory",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The directory on which GitReleaseManager should be executed. Defaults to current directory",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The directory on which GitReleaseManager should be executed. Defaults to current directory"
|
||||||
|
}]
|
||||||
|
}
|
||||||
19240
dist/azure/gitreleasemanager/publish/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/publish/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/publish/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
60
dist/azure/gitreleasemanager/publish/task.json
vendored
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"id": "b3c54483-4140-45d8-b442-3a0b096b5f7f",
|
||||||
|
"name": "gitreleasemanager/publish",
|
||||||
|
"friendlyName": "Publish GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/publish",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "owner",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The owner of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The owner of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "repository",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the repository",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the repository"
|
||||||
|
}, {
|
||||||
|
"name": "token",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The access token to access GitHub with",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The access token to access GitHub with"
|
||||||
|
}, {
|
||||||
|
"name": "tagName",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The name of the release",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "The name of the release"
|
||||||
|
}, {
|
||||||
|
"name": "targetDirectory",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The directory on which GitReleaseManager should be executed. Defaults to current directory",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "The directory on which GitReleaseManager should be executed. Defaults to current directory"
|
||||||
|
}]
|
||||||
|
}
|
||||||
19240
dist/azure/gitreleasemanager/setup/bundle.js
vendored
Normal file
BIN
dist/azure/gitreleasemanager/setup/icon.png
vendored
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
46
dist/azure/gitreleasemanager/setup/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
41
dist/azure/gitreleasemanager/setup/task.json
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"id": "e3022448-b00d-4b57-b504-606a0bcf8279",
|
||||||
|
"name": "gitreleasemanager/setup",
|
||||||
|
"friendlyName": "Setup GitReleaseManager Task",
|
||||||
|
"description": "Tool for creating and exporting releases for software applications hosted on GitHub",
|
||||||
|
"author": "GitTools Contributors",
|
||||||
|
"helpMarkDown": "See the [documentation](https://gittools.github.io/GitReleaseManager/docs/) for help",
|
||||||
|
"category": "Build",
|
||||||
|
"demands": [],
|
||||||
|
"version": {
|
||||||
|
"Major": "1",
|
||||||
|
"Minor": "0",
|
||||||
|
"Patch": "0"
|
||||||
|
},
|
||||||
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitreleasemanager/setup",
|
||||||
|
"inputs": [{
|
||||||
|
"name": "versionSpec",
|
||||||
|
"type": "string",
|
||||||
|
"label": "The version spec",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"helpMarkDown": "Required version in the form of 0.10.x or exact version like 0.10.2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "includePrerelease",
|
||||||
|
"type": "boolean",
|
||||||
|
"label": "Include pre-release versions",
|
||||||
|
"defaultValue": "false",
|
||||||
|
"required": false,
|
||||||
|
"helpMarkDown": "Include pre-release versions when matching a version"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
19100
dist/azure/gitversion/execute/bundle.js
vendored
Normal file
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
46
dist/azure/gitversion/execute/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,19 +1,26 @@
|
|||||||
{
|
{
|
||||||
"id": "9013cf7f-ee8d-49f4-a39b-db244928d391",
|
"id": "9013cf7f-ee8d-49f4-a39b-db244928d391",
|
||||||
"name": "gitversion-execute",
|
"name": "gitversion/execute",
|
||||||
"friendlyName": "Execute GitVersion Task",
|
"friendlyName": "Execute GitVersion Task",
|
||||||
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
||||||
"author": "GitVersion Contributors",
|
"author": "GitTools Contributors",
|
||||||
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
|
"helpMarkDown": "See the [documentation](https://gitversion.net/docs/) for help",
|
||||||
"category": "Build",
|
"category": "Build",
|
||||||
"demands": [],
|
"demands": [],
|
||||||
"version": {
|
"version": {
|
||||||
"Major": "5",
|
"Major": "1",
|
||||||
"Minor": "0",
|
"Minor": "0",
|
||||||
"Patch": "2"
|
"Patch": "0"
|
||||||
},
|
},
|
||||||
"minimumAgentVersion": "2.115.0",
|
"minimumAgentVersion": "2.115.0",
|
||||||
"instanceNameFormat": "gitversion-execute",
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitversion/execute",
|
||||||
"groups": [{
|
"groups": [{
|
||||||
"name": "gitversionDetails",
|
"name": "gitversionDetails",
|
||||||
"displayName": "GitVersion details",
|
"displayName": "GitVersion details",
|
||||||
@@ -77,13 +84,5 @@
|
|||||||
"helpMarkDown": "Additional arguments to send to GitVersion",
|
"helpMarkDown": "Additional arguments to send to GitVersion",
|
||||||
"groupName": "additional"
|
"groupName": "additional"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
|
|
||||||
"execution": {
|
|
||||||
"Node": {
|
|
||||||
"target": "index.js",
|
|
||||||
"argumentFormat": "",
|
|
||||||
"workingDirectory": "."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
19100
dist/azure/gitversion/setup/bundle.js
vendored
Normal file
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
46
dist/azure/gitversion/setup/lib.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"messages": {
|
||||||
|
"LIB_UnhandledEx": "Unhandled: %s",
|
||||||
|
"LIB_FailOnCode": "Failure return code: %d",
|
||||||
|
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
||||||
|
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
||||||
|
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
||||||
|
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
||||||
|
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
||||||
|
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
||||||
|
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
||||||
|
"LIB_ReturnCode": "Return code: %d",
|
||||||
|
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
||||||
|
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
||||||
|
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
||||||
|
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
||||||
|
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
||||||
|
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
||||||
|
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
||||||
|
"LIB_ParameterIsRequired": "%s not supplied",
|
||||||
|
"LIB_InputRequired": "Input required: %s",
|
||||||
|
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
||||||
|
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
||||||
|
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
||||||
|
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
||||||
|
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
||||||
|
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
||||||
|
"LIB_PathNotFound": "Not found %s: %s",
|
||||||
|
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
||||||
|
"LIB_OperationFailed": "Failed %s: %s",
|
||||||
|
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
||||||
|
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
||||||
|
"LIB_PlatformNotSupported": "Platform not supported: %s",
|
||||||
|
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
||||||
|
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_Downloading": "Downloading: %s",
|
||||||
|
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
||||||
|
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
||||||
|
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
||||||
|
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
||||||
|
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
||||||
|
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
||||||
|
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,18 +1,26 @@
|
|||||||
{
|
{
|
||||||
"id": "a06c02ae-7b9a-4082-90dc-fe27b500e54f",
|
"id": "a06c02ae-7b9a-4082-90dc-fe27b500e54f",
|
||||||
"name": "gitversion-setup",
|
"name": "gitversion/setup",
|
||||||
"friendlyName": "Setup GitVersion Task",
|
"friendlyName": "Setup GitVersion Task",
|
||||||
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
"description": "Easy Semantic Versioning (http://semver.org) for projects using Git",
|
||||||
"author": "GitVersion Contributors",
|
"author": "GitTools Contributors",
|
||||||
"helpMarkDown": "See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help",
|
"helpMarkDown": "See the [documentation](https://gitversion.net/docs/) for help",
|
||||||
"category": "Build",
|
"category": "Build",
|
||||||
"demands": [],
|
"demands": [],
|
||||||
"version": {
|
"version": {
|
||||||
"Major": "5",
|
"Major": "1",
|
||||||
"Minor": "0",
|
"Minor": "0",
|
||||||
"Patch": "2"
|
"Patch": "0"
|
||||||
},
|
},
|
||||||
"minimumAgentVersion": "2.115.0",
|
"minimumAgentVersion": "2.115.0",
|
||||||
|
"execution": {
|
||||||
|
"Node": {
|
||||||
|
"target": "bundle.js",
|
||||||
|
"argumentFormat": "",
|
||||||
|
"workingDirectory": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"instanceNameFormat": "gitversion/setup",
|
||||||
"inputs": [{
|
"inputs": [{
|
||||||
"name": "versionSpec",
|
"name": "versionSpec",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -29,14 +37,5 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"helpMarkDown": "Include pre-release versions when matching a version"
|
"helpMarkDown": "Include pre-release versions when matching a version"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"instanceNameFormat": "gitversion-setup",
|
|
||||||
|
|
||||||
"execution": {
|
|
||||||
"Node": {
|
|
||||||
"target": "index.js",
|
|
||||||
"argumentFormat": "",
|
|
||||||
"workingDirectory": "."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
BIN
dist/azure/images/build-task.png
vendored
|
Before Width: | Height: | Size: 24 KiB |
BIN
dist/azure/images/pipeline-editor-tasks.png
vendored
Normal file
|
After Width: | Height: | Size: 37 KiB |
9
dist/azure/overview.md
vendored
@@ -2,5 +2,10 @@ Versioning when using Git, solved. GitVersion looks at your Git history and work
|
|||||||
|
|
||||||
It works with most branching strategies but has been designed mainly around GitFlow and GitHubFlow (pull request workflow). The calculated version numbers can then be accessed through variables such as `$(GitVersion.NuGetVersion)` and `$(GitVersion.SemVer)`. It is also very configurable to allow it to work with most release workflows!
|
It works with most branching strategies but has been designed mainly around GitFlow and GitHubFlow (pull request workflow). The calculated version numbers can then be accessed through variables such as `$(GitVersion.NuGetVersion)` and `$(GitVersion.SemVer)`. It is also very configurable to allow it to work with most release workflows!
|
||||||
|
|
||||||

|
## Azure Pipelines tasks
|
||||||

|
|
||||||
|

|
||||||
|
|
||||||
|
## Azure Pipelines run examples
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
BIN
dist/azure/screenshots/pipeline-editor-execute-gitversion-task.png
vendored
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
dist/azure/screenshots/pipeline-editor-setup-gitversion-task.png
vendored
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
dist/azure/screenshots/pipeline-run-execute-gitversion-task.png
vendored
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
dist/azure/screenshots/pipeline-run-setup-gitversion-task.png
vendored
Normal file
|
After Width: | Height: | Size: 56 KiB |
16726
dist/azure/setup-gitversion/index.js
vendored
14
dist/azure/setup-gitversion/lib.json
vendored
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"messages": {
|
|
||||||
"TOOL_LIB_CachingTool": "Caching tool: %s %s %s",
|
|
||||||
"_TOOL_LIB_CachingTool.comment": "This informational log message indicates that a tool, that was just downloaded, is being copied into the cache directory. %s %s %s represent the tool name, version information, and processor architecture.",
|
|
||||||
"TOOL_LIB_Downloading": "Downloading: %s",
|
|
||||||
"_TOOL_LIB_Downloading.comment": "This information log message indicates that a file is being downloaded. %s represents the URL being downloaded.",
|
|
||||||
"TOOL_LIB_ExtractingArchive": "Extracting archive",
|
|
||||||
"_TOOL_LIB_ExtractingArchive.comment": "This informational log message indicates that an archive file is being extracted. For example, a .zip file, .7z file, or .tar.gz file.",
|
|
||||||
"TOOL_LIB_FoundInCache": "Found tool in cache: %s %s %s",
|
|
||||||
"_TOOL_LIB_FoundInCache.comment": "This informational log message indicates that the request tool is already cached, and does not need to be downloaded again. %s %s %s represent the tool name, version information, and processor architecture.",
|
|
||||||
"TOOL_LIB_PrependPath": "Prepending PATH environment variable with directory: %s",
|
|
||||||
"_TOOL_LIB_PrependPath.comment": "This informational log message indicates that a directory is being prepended to the front of the PATH environment variable. The directories specified by the PATH environment variable are used to resolve the location of command line tools."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
36
dist/azure/setup-gitversion/lib1.json
vendored
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
"messages": {
|
|
||||||
"LIB_UnhandledEx": "Unhandled: %s",
|
|
||||||
"LIB_FailOnCode": "Failure return code: %d",
|
|
||||||
"LIB_MkdirFailed": "Unable to create directory '%s'. %s",
|
|
||||||
"LIB_MkdirFailedFileExists": "Unable to create directory '%s'. Conflicting file exists: '%s'",
|
|
||||||
"LIB_MkdirFailedInvalidDriveRoot": "Unable to create directory '%s'. Root directory does not exist: '%s'",
|
|
||||||
"LIB_MkdirFailedInvalidShare": "Unable to create directory '%s'. Unable to verify the directory exists: '%s'. If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.",
|
|
||||||
"LIB_MultilineSecret": "Secrets cannot contain multiple lines",
|
|
||||||
"LIB_ProcessError": "There was an error when attempting to execute the process '%s'. This may indicate the process failed to start. Error: %s",
|
|
||||||
"LIB_ProcessExitCode": "The process '%s' failed with exit code %s",
|
|
||||||
"LIB_ProcessStderr": "The process '%s' failed because one or more lines were written to the STDERR stream",
|
|
||||||
"LIB_ReturnCode": "Return code: %d",
|
|
||||||
"LIB_ResourceFileNotExist": "Resource file doesn\\'t exist: %s",
|
|
||||||
"LIB_ResourceFileAlreadySet": "Resource file has already set to: %s",
|
|
||||||
"LIB_ResourceFileNotSet": "Resource file haven\\'t set, can\\'t find loc string for key: %s",
|
|
||||||
"LIB_StdioNotClosed": "The STDIO streams did not close within %s seconds of the exit event from process '%s'. This may indicate a child process inherited the STDIO streams and has not yet exited.",
|
|
||||||
"LIB_WhichNotFound_Linux": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.",
|
|
||||||
"LIB_WhichNotFound_Win": "Unable to locate executable file: '%s'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.",
|
|
||||||
"LIB_LocStringNotFound": "Can\\'t find loc string for key: %s",
|
|
||||||
"LIB_ParameterIsRequired": "%s not supplied",
|
|
||||||
"LIB_InputRequired": "Input required: %s",
|
|
||||||
"LIB_InvalidPattern": "Invalid pattern: '%s'",
|
|
||||||
"LIB_EndpointNotExist": "Endpoint not present: %s",
|
|
||||||
"LIB_EndpointDataNotExist": "Endpoint data parameter %s not present: %s",
|
|
||||||
"LIB_EndpointAuthNotExist": "Endpoint auth data not present: %s",
|
|
||||||
"LIB_InvalidEndpointAuth": "Invalid endpoint auth: %s",
|
|
||||||
"LIB_InvalidSecureFilesInput": "Invalid secure file input: %s",
|
|
||||||
"LIB_PathNotFound": "Not found %s: %s",
|
|
||||||
"LIB_PathHasNullByte": "Path cannot contain null bytes",
|
|
||||||
"LIB_OperationFailed": "Failed %s: %s",
|
|
||||||
"LIB_UseFirstGlobMatch": "Multiple workspace matches. using first.",
|
|
||||||
"LIB_MergeTestResultNotSupported": "Merging test results from multiple files to one test run is not supported on this version of build agent for OSX/Linux, each test result file will be published as a separate test run in VSO/TFS.",
|
|
||||||
"LIB_PlatformNotSupported": "Platform not supported: %s"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
43
dist/azure/update-version.ps1
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
function update-task() {
|
||||||
|
param(
|
||||||
|
[Parameter(Mandatory=$True, Position=0, ValueFromPipeline=$true)]
|
||||||
|
[System.String]
|
||||||
|
$file,
|
||||||
|
|
||||||
|
[Parameter(Mandatory=$True, Position=1, ValueFromPipeline=$false)]
|
||||||
|
[System.String]
|
||||||
|
$major,
|
||||||
|
|
||||||
|
[Parameter(Mandatory=$True, Position=2, ValueFromPipeline=$false)]
|
||||||
|
[System.String]
|
||||||
|
$minor,
|
||||||
|
|
||||||
|
[Parameter(Mandatory=$True, Position=3, ValueFromPipeline=$false)]
|
||||||
|
[System.String]
|
||||||
|
$patch
|
||||||
|
)
|
||||||
|
$file = Resolve-Path $file
|
||||||
|
$jqMajor = '.version.Major=\"' + $major +'\"';
|
||||||
|
$jqMinor = '.version.Minor=\"' + $minor +'\"';
|
||||||
|
$jqPatch = '.version.Patch=\"' + $patch +'\"';
|
||||||
|
Write-Host "Update task from $file to version $major.$minor.$patch"
|
||||||
|
|
||||||
|
Get-Content $file | jq $jqMajor | jq $jqMinor| jq $jqPatch | Set-Content $file
|
||||||
|
}
|
||||||
|
|
||||||
|
function update-manifest() {
|
||||||
|
param(
|
||||||
|
[Parameter(Mandatory=$True, Position=0, ValueFromPipeline=$true)]
|
||||||
|
[System.String]
|
||||||
|
$file,
|
||||||
|
|
||||||
|
[Parameter(Mandatory=$True, Position=1, ValueFromPipeline=$false)]
|
||||||
|
[System.String]
|
||||||
|
$version
|
||||||
|
)
|
||||||
|
$file = Resolve-Path $file
|
||||||
|
$jqVersion = '.version=\"' + $version +'\"';
|
||||||
|
Write-Host "Update manifest version to $version"
|
||||||
|
|
||||||
|
Get-Content $file | jq $jqVersion | Set-Content $file
|
||||||
|
}
|
||||||
101
dist/azure/vss-extension.json
vendored
@@ -11,8 +11,16 @@
|
|||||||
"id": "Microsoft.VisualStudio.Services"
|
"id": "Microsoft.VisualStudio.Services"
|
||||||
}],
|
}],
|
||||||
"files": [
|
"files": [
|
||||||
{ "path": "execute-gitversion" },
|
{ "path": "gitversion/setup" },
|
||||||
{ "path": "setup-gitversion" }
|
{ "path": "gitversion/execute" },
|
||||||
|
{ "path": "gitreleasemanager/setup" },
|
||||||
|
{ "path": "gitreleasemanager/create" },
|
||||||
|
{ "path": "gitreleasemanager/discard" },
|
||||||
|
{ "path": "gitreleasemanager/close" },
|
||||||
|
{ "path": "gitreleasemanager/open" },
|
||||||
|
{ "path": "gitreleasemanager/publish" },
|
||||||
|
{ "path": "gitreleasemanager/addasset" },
|
||||||
|
{ "path": "images", "addressable": true }
|
||||||
],
|
],
|
||||||
"categories": [
|
"categories": [
|
||||||
"Azure Pipelines"
|
"Azure Pipelines"
|
||||||
@@ -28,14 +36,15 @@
|
|||||||
"git",
|
"git",
|
||||||
"versioning",
|
"versioning",
|
||||||
"gitflow",
|
"gitflow",
|
||||||
"githubflow"
|
"githubflow",
|
||||||
|
"release"
|
||||||
],
|
],
|
||||||
"links": {
|
"links": {
|
||||||
"learn": {
|
"learn": {
|
||||||
"uri": "http://gitversion.readthedocs.org/en/stable"
|
"uri": "https://github.com/GitTools/actions"
|
||||||
},
|
},
|
||||||
"getstarted": {
|
"getstarted": {
|
||||||
"uri": "http://gitversion.readthedocs.org/en/stable/build-server-support/build-server/tfs-build-vnext/#running-inside-tfs"
|
"uri": "https://github.com/GitTools/actions"
|
||||||
},
|
},
|
||||||
"license": {
|
"license": {
|
||||||
"uri": "https://github.com/GitTools/actions/blob/master/LICENSE"
|
"uri": "https://github.com/GitTools/actions/blob/master/LICENSE"
|
||||||
@@ -47,11 +56,18 @@
|
|||||||
"uri": "https://github.com/GitTools/actions/issues"
|
"uri": "https://github.com/GitTools/actions/issues"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"screenshots": [{
|
"screenshots": [
|
||||||
"path": "images/builds.png"
|
{
|
||||||
|
"path": "screenshots/pipeline-editor-setup-gitversion-task.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "images/build-task.png"
|
"path": "screenshots/pipeline-run-setup-gitversion-task.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "screenshots/pipeline-editor-execute-gitversion-task.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "screenshots/pipeline-run-execute-gitversion-task.png"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"content": {
|
"content": {
|
||||||
@@ -66,7 +82,7 @@
|
|||||||
"ms.vss-distributed-task.tasks"
|
"ms.vss-distributed-task.tasks"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": "setup-gitversion"
|
"name": "gitversion/setup"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"id": "execute-gitversion-task",
|
"id": "execute-gitversion-task",
|
||||||
@@ -75,7 +91,70 @@
|
|||||||
"ms.vss-distributed-task.tasks"
|
"ms.vss-distributed-task.tasks"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": "execute-gitversion"
|
"name": "gitversion/execute"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "setup-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/setup"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "create-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/create"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "discard-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/discard"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "close-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/close"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "open-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/open"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "publish-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/publish"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"id": "addasset-gitreleasemanager-task",
|
||||||
|
"type": "ms.vss-distributed-task.task",
|
||||||
|
"targets": [
|
||||||
|
"ms.vss-distributed-task.tasks"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": "gitreleasemanager/addasset"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
9949
dist/github/execute/index.js
vendored
14367
dist/github/gitreleasemanager/addasset/bundle.js
vendored
Normal file
14367
dist/github/gitreleasemanager/close/bundle.js
vendored
Normal file
14367
dist/github/gitreleasemanager/create/bundle.js
vendored
Normal file
14367
dist/github/gitreleasemanager/discard/bundle.js
vendored
Normal file
14367
dist/github/gitreleasemanager/open/bundle.js
vendored
Normal file
14367
dist/github/gitreleasemanager/publish/bundle.js
vendored
Normal file
14367
dist/github/gitreleasemanager/setup/bundle.js
vendored
Normal file
14227
dist/github/gitversion/execute/bundle.js
vendored
Normal file
14227
dist/github/gitversion/setup/bundle.js
vendored
Normal file
9949
dist/github/setup/index.js
vendored
8419
dist/mock/gitreleasemanager/addasset/bundle.js
vendored
Normal file
8419
dist/mock/gitreleasemanager/close/bundle.js
vendored
Normal file
8419
dist/mock/gitreleasemanager/create/bundle.js
vendored
Normal file
8419
dist/mock/gitreleasemanager/discard/bundle.js
vendored
Normal file
8419
dist/mock/gitreleasemanager/open/bundle.js
vendored
Normal file
8419
dist/mock/gitreleasemanager/publish/bundle.js
vendored
Normal file
8419
dist/mock/gitreleasemanager/setup/bundle.js
vendored
Normal file
8279
dist/mock/gitversion/execute/bundle.js
vendored
Normal file
8279
dist/mock/gitversion/setup/bundle.js
vendored
Normal file
14
docs/examples/azure/gitreleasemanager/addasset.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/addasset@0
|
||||||
|
inputs:
|
||||||
|
token: '$(GITHUB_TOKEN)'
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepo'
|
||||||
|
tagName: '0.1.0'
|
||||||
|
assets: |
|
||||||
|
src/test.txt
|
||||||
|
src/test1.txt
|
||||||
|
```
|
||||||
11
docs/examples/azure/gitreleasemanager/close.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/close@0
|
||||||
|
inputs:
|
||||||
|
token: '$(GITHUB_TOKEN)'
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepo'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
```
|
||||||
16
docs/examples/azure/gitreleasemanager/create.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/create@0
|
||||||
|
displayName: Create release with GitReleaseManager
|
||||||
|
inputs:
|
||||||
|
token: $(GITHUB_TOKEN)
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepo'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
name: 'v0.1.0'
|
||||||
|
assets: |
|
||||||
|
src/test.txt
|
||||||
|
src/test1.txt
|
||||||
|
```
|
||||||
11
docs/examples/azure/gitreleasemanager/discard.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/discard@0
|
||||||
|
inputs:
|
||||||
|
token: '$(GITHUB_TOKEN)'
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepo'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
```
|
||||||
11
docs/examples/azure/gitreleasemanager/index.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GitReleaseManager Azure DevOps Action
|
||||||
|
|
||||||
|
Below you'll find examples of how to do particular actions with GitReleaseManager:
|
||||||
|
|
||||||
|
* [Add asset](addasset.md)
|
||||||
|
* [Close](close.md)
|
||||||
|
* [Create](create.md)
|
||||||
|
* [Discard](discard.md)
|
||||||
|
* [Open](open.md)
|
||||||
|
* [Publish](publish.md)
|
||||||
|
* [Setup](setup.md)
|
||||||
11
docs/examples/azure/gitreleasemanager/open.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/open@0
|
||||||
|
inputs:
|
||||||
|
token: '$(GITHUB_TOKEN)'
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepo'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
```
|
||||||
11
docs/examples/azure/gitreleasemanager/publish.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/publish@0
|
||||||
|
inputs:
|
||||||
|
token: '$(GITHUB_TOKEN)'
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepo'
|
||||||
|
tagName: '0.1.0'
|
||||||
|
```
|
||||||
9
docs/examples/azure/gitreleasemanager/setup.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitreleasemanager/setup@0
|
||||||
|
displayName: Install GitReleaseManager
|
||||||
|
inputs:
|
||||||
|
versionSpec: '0.10.x'
|
||||||
|
```
|
||||||
299
docs/examples/azure/gitversion/execute/usage-examples.md
Normal file
@@ -0,0 +1,299 @@
|
|||||||
|
# Execute GitVersion Task (gitversion/execute) Usage Examples
|
||||||
|
|
||||||
|
Find out how to use the **gitversion/execute** task using the examples below.
|
||||||
|
|
||||||
|
> The examples use the latest _0.x_ version of the GitVersion Execute task. It is recommended to use the latest released version in your own pipelines.
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
The Execute GitVersion task accepts the following inputs:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
targetPath:
|
||||||
|
description: Optionally supply the path to the working directory.
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
useConfigFile:
|
||||||
|
description: Whether to use a custom configuration file.
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
configFilePath:
|
||||||
|
description: Optional path to config file (defaults to GitVersion.yml).
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
updateAssemblyInfo:
|
||||||
|
description: Whether to update versions in the AssemblyInfo files.
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
updateAssemblyInfoFilename:
|
||||||
|
description: Update versions in specified file.
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
additionalArguments:
|
||||||
|
description: Additional arguments to send to GitVersion.
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
```
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
|
The Execute GitVersion task creates the following job-scoped variables and multi-job output variables:
|
||||||
|
|
||||||
|
- GitVersion.Major
|
||||||
|
- GitVersion.Minor
|
||||||
|
- GitVersion.Patch
|
||||||
|
- GitVersion.PreReleaseTag
|
||||||
|
- GitVersion.PreReleaseTagWithDash
|
||||||
|
- GitVersion.PreReleaseLabel
|
||||||
|
- GitVersion.PreReleaseNumber
|
||||||
|
- GitVersion.WeightedPreReleaseNumber
|
||||||
|
- GitVersion.BuildMetaData
|
||||||
|
- GitVersion.BuildMetaDataPadded
|
||||||
|
- GitVersion.FullBuildMetaData
|
||||||
|
- GitVersion.MajorMinorPatch
|
||||||
|
- GitVersion.SemVer
|
||||||
|
- GitVersion.LegacySemVer
|
||||||
|
- GitVersion.LegacySemVerPadded
|
||||||
|
- GitVersion.AssemblySemVer
|
||||||
|
- GitVersion.AssemblySemFileVer
|
||||||
|
- GitVersion.FullSemVer
|
||||||
|
- GitVersion.InformationalVersion
|
||||||
|
- GitVersion.BranchName
|
||||||
|
- GitVersion.EscapedBranchName (since 5.2.0)
|
||||||
|
- GitVersion.Sha
|
||||||
|
- GitVersion.ShortSha
|
||||||
|
- GitVersion.NuGetVersionV2
|
||||||
|
- GitVersion.NuGetVersion
|
||||||
|
- GitVersion.NuGetPreReleaseTagV2
|
||||||
|
- GitVersion.NuGetPreReleaseTag
|
||||||
|
- GitVersion.VersionSourceSha
|
||||||
|
- GitVersion.CommitsSinceVersionSource
|
||||||
|
- GitVersion.CommitsSinceVersionSourcePadded (since 5.2.0)
|
||||||
|
- GitVersion.UncommittedChanges (since 5.5.0)
|
||||||
|
- GitVersion.CommitDate
|
||||||
|
|
||||||
|
The job-scoped variables can be accessed using the macro syntax `$(GitVersion.<variableName>)` in subsequent steps in the same job. Azure Pipelines also creates environment variables of the form `GITVERSION_<VARIABLENAME>`. See examples [5](#example-5) and [6](#example-6).
|
||||||
|
|
||||||
|
The multi-job output variables can be accessed across jobs and stages, in both conditions and variables. See examples [7](#example-7) to [10](#example-10).
|
||||||
|
|
||||||
|
**GitVersion also automatically updates the pre-defined Build variable `Build.BuildNumber`.**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
|
||||||
|
Calculate the version for the build.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Determine Version
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 2
|
||||||
|
|
||||||
|
Calculate the version for the build using a config file with the default name **GitVersion.yml**.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Determine Version
|
||||||
|
inputs:
|
||||||
|
useConfigFile: true
|
||||||
|
```
|
||||||
|
|
||||||
|
Example contents of **GitVersion.yml**:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
mode: Mainline
|
||||||
|
branches:
|
||||||
|
master:
|
||||||
|
regex: ^latest$
|
||||||
|
pull-request:
|
||||||
|
tag: pr
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 3
|
||||||
|
|
||||||
|
Calculate the version for the build using a config file named **VersionConfig.yml** in the root of the working folder.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Determine Version
|
||||||
|
inputs:
|
||||||
|
useConfigFile: true
|
||||||
|
configFilePath: 'VersionConfig.yml'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 4
|
||||||
|
|
||||||
|
Show the effective configuration for GitVersion by running the **/showConfig** command (passed as an additional argument).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Display GitVersion config
|
||||||
|
inputs:
|
||||||
|
additionalArguments: '/showConfig'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 5
|
||||||
|
|
||||||
|
Calculate the version for the build and display all the calculated variables in the next step.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Determine Version
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
echo Major: $(GitVersion.Major)
|
||||||
|
echo Minor: $(GitVersion.Minor)
|
||||||
|
echo Patch: $(GitVersion.Patch)
|
||||||
|
echo PreReleaseTag: $(GitVersion.PreReleaseTag)
|
||||||
|
echo PreReleaseTagWithDash: $(GitVersion.PreReleaseTagWithDash)
|
||||||
|
echo PreReleaseLabel: $(GitVersion.PreReleaseLabel)
|
||||||
|
echo PreReleaseNumber: $(GitVersion.PreReleaseNumber)
|
||||||
|
echo WeightedPreReleaseNumber: $(GitVersion.WeightedPreReleaseNumber)
|
||||||
|
echo BuildMetaData: $(GitVersion.BuildMetaData)
|
||||||
|
echo BuildMetaDataPadded: $(GitVersion.BuildMetaDataPadded)
|
||||||
|
echo FullBuildMetaData: $(GitVersion.FullBuildMetaData)
|
||||||
|
echo MajorMinorPatch: $(GitVersion.MajorMinorPatch)
|
||||||
|
echo SemVer: $(GitVersion.SemVer)
|
||||||
|
echo LegacySemVer: $(GitVersion.LegacySemVer)
|
||||||
|
echo LegacySemVerPadded: $(GitVersion.LegacySemVerPadded)
|
||||||
|
echo AssemblySemVer: $(GitVersion.AssemblySemVer)
|
||||||
|
echo AssemblySemFileVer: $(GitVersion.AssemblySemFileVer)
|
||||||
|
echo FullSemVer: $(GitVersion.FullSemVer)
|
||||||
|
echo InformationalVersion: $(GitVersion.InformationalVersion)
|
||||||
|
echo BranchName: $(GitVersion.BranchName)
|
||||||
|
echo EscapedBranchName: $(GitVersion.EscapedBranchName)
|
||||||
|
echo Sha: $(GitVersion.Sha)
|
||||||
|
echo ShortSha: $(GitVersion.ShortSha)
|
||||||
|
echo NuGetVersionV2: $(GitVersion.NuGetVersionV2)
|
||||||
|
echo NuGetVersion: $(GitVersion.NuGetVersion)
|
||||||
|
echo NuGetPreReleaseTagV2: $(GitVersion.NuGetPreReleaseTagV2)
|
||||||
|
echo NuGetPreReleaseTag: $(GitVersion.NuGetPreReleaseTag)
|
||||||
|
echo VersionSourceSha: $(GitVersion.VersionSourceSha)
|
||||||
|
echo CommitsSinceVersionSource: $(GitVersion.CommitsSinceVersionSource)
|
||||||
|
echo CommitsSinceVersionSourcePadded: $(GitVersion.CommitsSinceVersionSourcePadded)
|
||||||
|
echo UncommittedChanges: $(GitVersion.UncommittedChanges)
|
||||||
|
echo CommitDate: $(GitVersion.CommitDate)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 6
|
||||||
|
|
||||||
|
Calculate the version for the build and use the `GitVersion.NuGetVersion` variable to set the NuGet package version.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Determine Version
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: Pack Example
|
||||||
|
inputs:
|
||||||
|
command: pack
|
||||||
|
packagesToPack: src/Example/LibExample.csproj
|
||||||
|
versioningScheme: byEnvVar
|
||||||
|
versionEnvVar: GitVersion.NuGetVersion # alternative syntax GITVERSION_NUGETVERSION (the former gets converted into the latter internally)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 7
|
||||||
|
|
||||||
|
Calculate the version for the build and use the `GitVersion.BranchName` variable in a condition for starting another job.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
job: CalculateVersion
|
||||||
|
displayName: Calculate version using GitVersion
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Use GitVersion
|
||||||
|
name: Version # the step MUST be named to access its output variables in another job.
|
||||||
|
|
||||||
|
job: CreateReleaseNotes
|
||||||
|
condition: and(succeeded(), eq(dependencies.CalculateVersion.outputs['Version.GitVersion.BranchName'], 'main')
|
||||||
|
dependsOn: CalculateVersion
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 8
|
||||||
|
|
||||||
|
Calculate the version for the build and map the `GitVersion.SemVer` variable into a variable in another job.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
job: CalculateVersion
|
||||||
|
displayName: Calculate version using GitVersion
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Use GitVersion
|
||||||
|
name: Version # the step MUST be named to access its output variables in another job.
|
||||||
|
|
||||||
|
job: BuildAndPack
|
||||||
|
variables:
|
||||||
|
Ver.MajorMinorPatch: $[ dependencies.CalculateVersion.outputs['Version.GitVersion.MajorMinorPatch'] ]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 9
|
||||||
|
|
||||||
|
Calculate the version for the build and use the `GitVersion.Major` output variable in a condition for starting another stage.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
stages:
|
||||||
|
- stage: S1
|
||||||
|
jobs:
|
||||||
|
- job: CalculateVersion
|
||||||
|
displayName: Calculate version number using GitVersion
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Use GitVersion
|
||||||
|
name: Version # the step MUST be named to access its output variables in another stage.
|
||||||
|
|
||||||
|
- stage: S2
|
||||||
|
condition: and(succeeded(), gt(dependencies.S1.outputs['CalculateVersion.Version.GitVersion.Major'], 0))
|
||||||
|
dependsOn: S1
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 10
|
||||||
|
|
||||||
|
Calculate the version for the build and map the `GitVersion.AssemblySemVer` variable into a variable in another job for a different stage.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
stages:
|
||||||
|
- stage: S1
|
||||||
|
jobs:
|
||||||
|
- job: CalculateVersion
|
||||||
|
displayName: Calculate version number using GitVersion
|
||||||
|
steps:
|
||||||
|
# gitversion/setup@0 task omitted for brevity.
|
||||||
|
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Use GitVersion
|
||||||
|
name: Version # the step MUST be named to access its output variables in another stage.
|
||||||
|
- stage: S2
|
||||||
|
dependsOn: S1
|
||||||
|
jobs:
|
||||||
|
- job: UpdateAssemblyVersions
|
||||||
|
variables:
|
||||||
|
Ver.AssemblyVer: $[ stageDependencies.S1.CalculateVersion.outputs['Version.GitVersion.AssemblySemVer'] ] # Note the 'stageDependencies.<jobName>' syntax.
|
||||||
|
```
|
||||||
11
docs/examples/azure/gitversion/index.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GitVersion Tasks Usage Examples
|
||||||
|
|
||||||
|
Use the following links to see usage examples of the Setup GitVersion (**gitversion/setup**) and Execute GitVersion (**gitversion/execute**) tasks.
|
||||||
|
|
||||||
|
## Setup GitVersion (gitversion/setup)
|
||||||
|
|
||||||
|
- [Usage examples](setup/usage-examples.md)
|
||||||
|
|
||||||
|
## Execute GitVersion (gitversion/execute)
|
||||||
|
|
||||||
|
- [Usage examples](execute/usage-examples.md)
|
||||||
61
docs/examples/azure/gitversion/setup/usage-examples.md
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# Setup GitVersion Task (gitversion/setup) Usage Examples
|
||||||
|
|
||||||
|
Find out how to use the **gitversion/setup** task using the examples below.
|
||||||
|
|
||||||
|
> The examples use the latest _0.x_ version of the GitVersion Setup task. It is recommended to use the latest released version in your own pipelines.
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
The Setup GitVersion task accepts the following inputs:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
versionSpec:
|
||||||
|
description: Required version in the form of 5.x or exact version like 5.0.0.
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
includePrerelease:
|
||||||
|
description: Include pre-release versions when matching a version.
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Usage examples
|
||||||
|
|
||||||
|
### Example 1
|
||||||
|
|
||||||
|
Install the latest GitVersion 5 version.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitversion/setup@0
|
||||||
|
displayName: Install GitVersion
|
||||||
|
inputs:
|
||||||
|
versionSpec: '5.x'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 2
|
||||||
|
|
||||||
|
Install GitVersion 5.5.0.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitversion/setup@0
|
||||||
|
displayName: Install GitVersion
|
||||||
|
inputs:
|
||||||
|
versionSpec: '5.5.0'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example 3
|
||||||
|
|
||||||
|
Install the latest GitVersion 6 pre-release version. For example **6.0.0-beta1.1**.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitversion/setup@0
|
||||||
|
displayName: Install GitVersion
|
||||||
|
inputs:
|
||||||
|
versionSpec: '6.x'
|
||||||
|
includePrerelease: true
|
||||||
|
```
|
||||||
15
docs/examples/github/gitreleasemanager/addasset.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: gittools/actions/gitreleasemanager/addasset@v0.9.2
|
||||||
|
name: Add asset to a release with GitReleaseManager
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepository'
|
||||||
|
tagName: '0.1.0'
|
||||||
|
assets: |
|
||||||
|
src/test.txt
|
||||||
|
src/test1.txt
|
||||||
|
```
|
||||||
12
docs/examples/github/gitreleasemanager/close.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: gittools/actions/gitreleasemanager/close@v0.9.2
|
||||||
|
name: Close release with GitReleaseManager
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepository'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
```
|
||||||
16
docs/examples/github/gitreleasemanager/create.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: gittools/actions/gitreleasemanager/create@v0.9.2
|
||||||
|
name: Create release with GitReleaseManager
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepository'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
name: 'v0.1.0'
|
||||||
|
assets: |
|
||||||
|
src/test.txt
|
||||||
|
src/test1.txt
|
||||||
|
```
|
||||||
12
docs/examples/github/gitreleasemanager/discard.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: gittools/actions/gitreleasemanager/discard@v0.9.2
|
||||||
|
name: Discard release with GitReleaseManager
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepository'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
```
|
||||||
11
docs/examples/github/gitreleasemanager/index.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# GitReleaseManager GitHub Action
|
||||||
|
|
||||||
|
Below you'll find examples of how to do particular actions with GitReleaseManager:
|
||||||
|
|
||||||
|
* [Add asset](addasset.md)
|
||||||
|
* [Close](close.md)
|
||||||
|
* [Create](create.md)
|
||||||
|
* [Discard](discard.md)
|
||||||
|
* [Open](open.md)
|
||||||
|
* [Publish](publish.md)
|
||||||
|
* [Setup](setup.md)
|
||||||
12
docs/examples/github/gitreleasemanager/open.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: gittools/actions/gitreleasemanager/open@v0.9.2
|
||||||
|
name: Open release with GitReleaseManager
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepository'
|
||||||
|
milestone: '0.1.0'
|
||||||
|
```
|
||||||
12
docs/examples/github/gitreleasemanager/publish.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: gittools/actions/gitreleasemanager/publish@v0.9.2
|
||||||
|
name: Publish release with GitReleaseManager
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
owner: 'someOwner'
|
||||||
|
repository: 'someRepository'
|
||||||
|
tagName: '0.1.0'
|
||||||
|
```
|
||||||