Skip to content

Commit

Permalink
Add licence support (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav authored Nov 25, 2024
1 parent 2063708 commit d80e773
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Sheriff Azure DevOps Extension Changelog

## 0.0.8

* `SheriffPlan` and `SheriffApply` tasks updated to add licence support.

## 0.0.7

* `InstallSheriffCLI` task updated to download Sheriff from releases.frontierhq.com.
Expand Down
4 changes: 2 additions & 2 deletions tasks/SheriffApply/SheriffApplyV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tasks/SheriffApply/SheriffApplyV0/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sheriff-apply-task",
"version": "0.0.3",
"version": "0.1.0",
"description": "",
"scripts": {
"test": "run-p test:*",
Expand Down
3 changes: 3 additions & 0 deletions tasks/SheriffApply/SheriffApplyV0/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function run() {
try {
const configDir = tl.getInput('configDir', false);
const connectedService = tl.getInput('serviceConnectionName', true);
const licenceFilePath = tl.getInput('licenceFilePath', false);
const mode = tl.getInput('mode', true);
const planOnly = (tl.getInput('planOnly', false) === 'true');

Expand Down Expand Up @@ -92,6 +93,8 @@ async function run() {
mode,
configDir ? '--config-dir' : '',
configDir,
licenceFilePath ? '--licence-file' : '',
licenceFilePath,
'--subscription-id',
subscriptionId,
planOnly ? '--plan-only' : '',
Expand Down
7 changes: 7 additions & 0 deletions tasks/SheriffApply/SheriffApplyV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
"required": false,
"helpMarkDown": "The config directory path"
},
{
"name": "licenceFilePath",
"type": "string",
"label": "Licence file path",
"required": false,
"helpMarkDown": "The licence file path"
},
{
"name": "mode",
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions tasks/SheriffPlan/SheriffPlanV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tasks/SheriffPlan/SheriffPlanV0/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sheriff-plan-task",
"version": "0.0.3",
"version": "0.1.0",
"description": "",
"scripts": {
"test": "run-p test:*",
Expand Down
3 changes: 3 additions & 0 deletions tasks/SheriffPlan/SheriffPlanV0/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function run() {
try {
const configDir = tl.getInput('configDir', false);
const connectedService = tl.getInput('serviceConnectionName', true);
const licenceFilePath = tl.getInput('licenceFilePath', false);
const mode = tl.getInput('mode', true);

let subscriptionId = tl.getInput('subscriptionId', false);
Expand Down Expand Up @@ -91,6 +92,8 @@ async function run() {
mode,
configDir ? '--config-dir' : '',
configDir,
licenceFilePath ? '--licence-file' : '',
licenceFilePath,
'--subscription-id',
subscriptionId,
],
Expand Down
7 changes: 7 additions & 0 deletions tasks/SheriffPlan/SheriffPlanV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
"required": false,
"helpMarkDown": "The config directory path"
},
{
"name": "licenceFilePath",
"type": "string",
"label": "Licence file path",
"required": false,
"helpMarkDown": "The licence file path"
},
{
"name": "mode",
"type": "string",
Expand Down

0 comments on commit d80e773

Please sign in to comment.