File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments