Skip to content

Commit b0708e2

Browse files
author
Wael Kdouh
committed
Updated the azure devops pipelines to fetch the executables directly from the public repo
1 parent 2cd9045 commit b0708e2

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

tools/azdo_pipelines/run-extractor.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ stages:
4646
pool:
4747
vmImage: ubuntu-latest
4848
steps:
49-
- task: UniversalPackages@0
50-
displayName: Download extractor
51-
inputs:
52-
downloadDirectory: '$(Pipeline.Workspace)/extractor'
53-
vstsFeed: $(System.TeamProject)/$(ARTIFACTS_FEED_NAME)
54-
vstsFeedPackage: 'extractor'
55-
vstsPackageVersion: '*'
5649
- task: AzureCLI@2
5750
displayName: Set extraction variables
5851
inputs:
@@ -67,15 +60,25 @@ stages:
6760
echo "##vso[task.setvariable issecret=true;variable=AZURE_SUBSCRIPTION_ID]$(az account show --query "id" --output tsv)"
6861
addSpnToEnvironment: true
6962
failOnStandardError: true
63+
- task: Bash@3
64+
displayName: Fetch extractor
65+
inputs:
66+
targetType: 'inline'
67+
script: |
68+
wget https://github.com/Azure/apiops/releases/download/$(apiops_release_version)/extractor
69+
result=$?
70+
echo "Exit code is $result"
71+
exit $result
72+
failOnStderr: false
7073
- task: AzureCLI@2
7174
displayName: Run extractor
7275
inputs:
7376
azureSubscription: "$(SERVICE_CONNECTION_NAME)"
7477
scriptType: bash
7578
scriptLocation: inlineScript
7679
inlineScript: |
77-
chmod u+x $(Pipeline.Workspace)/extractor/extractor
78-
$(Pipeline.Workspace)/extractor/extractor
80+
chmod +x ./extractor
81+
./extractor
7982
result=$?
8083
echo "Exit code is $result"
8184
exit $result

tools/azdo_pipelines/run-publisher.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ stages:
3333
pool:
3434
vmImage: ubuntu-latest
3535
steps:
36-
- template: apim-stage.yaml
36+
- template: run-publisher-with-env.yaml
3737
parameters:
3838
API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: ${{ parameters.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}
3939
RESOURCE_GROUP_NAME : $(RESOURCE_GROUP_NAME)
@@ -57,7 +57,7 @@ stages:
5757
runOnce:
5858
deploy:
5959
steps:
60-
- template: apim-stage.yaml
60+
- template: run-publisher-with-env.yaml
6161
parameters:
6262
API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: ${{ parameters.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}
6363
RESOURCE_GROUP_NAME : $(RESOURCE_GROUP_NAME_Prod)

0 commit comments

Comments
 (0)