Skip to content

Commit

Permalink
Users/pandriiesh/add readme (#17802)
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloAndriiesh authored Feb 22, 2023
1 parent 7daa3d3 commit a881ae4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions Tasks/BashV3/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
BashV3


2 changes: 1 addition & 1 deletion ci/ci-test-tasks/clean-up-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:
steps:
- script: |
npm install -g tfx-cli
tfx login --auth-type pat --service-url $(ADOUrl) --token $(ADOToken) --no-prompt
tfx login --auth-type pat --service-url $(ADOUrl)/DefaultCollection --token $(ADOToken) --no-prompt
TASKID=`node ./ci/canary-test/get-task-guid.js ./task-${{ parameters.task }}/${{parameters.task}}/task.json`
echo "Deleting task"
echo $TASKID
Expand Down
3 changes: 2 additions & 1 deletion ci/ci-test-tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
- script: npm install axios
displayName: 'npm install axios'
- script: |
node ./ci/ci-test-tasks/verify-testing-pipeline-exist.js $(ADOToken) $(ApiUrl) ${{ task }}
node ./ci/ci-test-tasks/verify-testing-pipeline-exist.js $(ADOToken) $(ADOUrl) ${{ task }}
failOnStderr: true
displayName: 'Verify test pipeline exist'
- job: ${{ task }}_build_task
dependsOn: ${{ task }}_verify_testing_pipeline
Expand Down
3 changes: 2 additions & 1 deletion ci/ci-test-tasks/test-and-verify.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const axios = require('axios');

const AUTH_TOKEN = process.argv[2];
const apiUrl = process.argv[3];
const ADOUrl = process.argv[3];
const task = process.argv[4];
const apiVersion = 'api-version=7.0';
const apiUrl = ADOUrl + 'PipelineTasks/_apis/pipelines';

const auth = {
username: 'Basic',
Expand Down
2 changes: 1 addition & 1 deletion ci/ci-test-tasks/test-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ steps:

- script: |
echo "Tasks: ${{ parameters.task }}"
node ./ci/ci-test-tasks/test-and-verify.js $(ADOToken) $(ApiUrl) ${{ parameters.task }}
node ./ci/ci-test-tasks/test-and-verify.js $(ADOToken) $(ADOUrl) ${{ parameters.task }}
displayName: 'Run tests and verify results'
2 changes: 1 addition & 1 deletion ci/ci-test-tasks/upload-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ steps:
targetType: 'inline'
script: |
npm install -g tfx-cli
tfx login --auth-type pat --service-url $(ADOUrl) --token $(ADOToken) --no-prompt
tfx login --auth-type pat --service-url $(ADOUrl)/DefaultCollection --token $(ADOToken) --no-prompt
TASKID=`node ./ci/ci-test-tasks/get-task-guid.js ./task-${{ parameters.task }}/${{parameters.task}}/task.json`
echo $TASKID
echo "##vso[task.setvariable variable=TASKID;]$TASKID"
Expand Down
3 changes: 2 additions & 1 deletion ci/ci-test-tasks/verify-testing-pipeline-exist.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const axios = require('axios');

const AUTH_TOKEN = process.argv[2];
const apiUrl = process.argv[3];
const ADOUrl = process.argv[3];
const task = process.argv[4];
const apiVersion = 'api-version=7.0';
const apiUrl = ADOUrl + 'PipelineTasks/_apis/pipelines';

const auth = {
username: 'Basic',
Expand Down

0 comments on commit a881ae4

Please sign in to comment.