@@ -51,51 +51,6 @@ stages:
5151 name: "EnvironmentalVariables"
5252 displayName: "Set environmental variables"
5353
54- - job : resources
55- displayName : " [Infra] Configure Build Resources"
56- variables :
57- ACNCI_BUILDUSER_ROLE_NAME : " ACN CI/CD Build Environment Owner"
58- ACNCI_MANAGEDIDENTITY_PREFIX : acnci-builds-
59- ACNCI_RG_PREFIX : acnci-builds-
60- ACNCI_RG_LOCATION : centralus
61- ACNCI_RG_POOL_SIZE : 3
62- ACNCI_SA_PREFIX : acnci
63- ACNCI_SA_LOCATION : $(ACNCI_RG_LOCATION)
64- ACNCI_SA_POOL_SIZE : 1
65- ACNCI_BUILDTAG_DEFINITIONID : ' Pipelines.DefinitionID'
66- ACNCI_BUILDTAG_CREATEDBYAPPID : ' Pipelines.CreatedByAppID'
67- ACNCI_BUILDTAG_CREATEDBYBUILDID : ' Pipelines.CreatedByBuildID'
68- CREATE_NEW_SA : False
69- ob_outputDirectory : $(Build.ArtifactStagingDirectory)
70- ob_git_checkout : true
71- pool :
72- type : linux
73- steps :
74- - checkout : ACNTools
75- clean : true
76-
77- - task : AzureCLI@2
78- displayName : " [Test] Service Connection"
79- inputs :
80- azureSubscription : $(ACNCI_BUILDUSER_SERVICECONNECTION_NAME)
81- scriptType : bash
82- scriptLocation : inlineScript
83- addSpnToEnvironment : true
84- inlineScript : |
85- echo "OK."
86-
87- - task : AzureCLI@2
88- displayName : " [Test] Service Connection"
89- inputs :
90- azureSubscription : $(ACN_TEST_SERVICE_CONNECTION)
91- scriptType : bash
92- scriptLocation : inlineScript
93- addSpnToEnvironment : true
94- inlineScript : |
95- echo "OK."
96-
97- - template : templates/artifact-storage.steps.yaml@ACNTools
98-
9954 - template : templates/unit-tests.stages.yaml@ACNTools
10055
10156 - ${{ if not(contains(parameters.triggerBuildSourceBranch, 'refs/pull')) }} :
@@ -106,18 +61,13 @@ stages:
10661 - test
10762 variables :
10863 ACN_DIR : $(Build.SourcesDirectory)
109- SA_NAME : $[ stageDependencies.setup.resources.outputs['artifact_storage.ACNCI_STORAGEACCOUNT_NAME'] ]
110- CONTAINER_NAME : $[ stageDependencies.setup.resources.outputs['artifact_container.ACNCI_STORAGEACCOUNT_ARTIFACT_CONTAINER'] ]
111- BLOB_PATH : $[ stageDependencies.setup.resources.outputs['artifact_blob.ACNCI_STORAGEACCOUNT_BLOBPATH'] ]
11264 jobs :
11365 - job : build
11466 displayName : Build Binaries
11567 variables :
11668 STORAGE_ID : $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ]
11769 ob_outputDirectory : $(Build.ArtifactStagingDirectory)
11870 ob_git_checkout : true
119- ob_artifactSuffix : $(System.JobAttempt)
120- ob_artifactBaseName : drop_binaries_build
12171 pool :
12272 isCustom : true
12373 type : linux
@@ -134,46 +84,19 @@ stages:
13484 workingDirectory: $(ACN_DIR)
13585
13686 - script : |
137- mkdir -p ./output/bins
13887 cd ./output
13988 find . -name '*.tgz' -print -exec mv -t ./bins/ {} +
14089 find . -name '*.zip' -print -exec mv -t ./bins/ {} +
14190 shopt -s extglob
14291 rm -rf !("bins")
14392 name: "PrepareArtifacts"
14493 displayName: "Prepare Artifacts"
145-
146- - template : templates/copy-storage-artifacts.steps.yaml@ACNTools
147- parameters :
148- targetFolder : binary-output
149- sourceFolder : $(Build.ArtifactStagingDirectory)
150-
151- - job :
152- displayName : " [Publish] Generate Binary Artifacts"
153- dependsOn :
154- - build
155- pool :
156- type : linux
157- variables :
158- blobName : binary-output
159- ob_outputDirectory : $(Build.ArtifactStagingDirectory)
160- ob_git_checkout : true
161- steps :
162- - checkout : ACNTools
163- clean : true
164-
165- - template : templates/download-storage-artifacts.steps.yaml
166- parameters :
167- artifactName : binary-output
16894
169- # - publish: ${Build.ArtifactStagingDirectory)
170- # artifact: drop_binaries_build
171- # condition: succeeded()
172- # - task: CopVyFiles@2
173- # inputs:
174- # sourceFolder: "output"
175- # targetFolder: $(Build.ArtifactStagingDirectory)
176- # condition: succeeded()
95+ - task : CopyFiles@2
96+ inputs :
97+ sourceFolder : " output"
98+ targetFolder : $(Build.ArtifactStagingDirectory)
99+ condition : succeeded()
177100
178101
179102 - stage : containerize
0 commit comments