Skip to content

Commit b41ae2a

Browse files
authored
Prepare artifacts stage (#628)
1 parent dc37410 commit b41ae2a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.pipelines/pipeline.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ stages:
9494
displayName: "Build Linux"
9595
9696
- bash: |
97-
cd ./output
98-
sudo find . -mindepth 2 -type f -regextype posix-extended ! -iregex '.*\.(zip|tgz)$' -delete
99-
sudo find . -mindepth 2 -type f -print -exec mv {} . \;
100-
sudo rm -R -- */ && cd ..
10197
# run test, echo exit status code to fd 3, pipe output from test to tee, which splits output to stdout and go-junit-report (which converts test output to report.xml), stdout from tee is redirected to fd 4. Take output written to fd 3 (which is the exit code of test), redirect to stdout, pipe to read from stdout then exit with that status code. Read all output from fd 4 (output from tee) and write to top stdout
10298
{ { { {
10399
sudo -E env "PATH=$PATH" make test-all;
@@ -148,6 +144,15 @@ stages:
148144
name: "mcrreplication"
149145
displayName: "Push NPM Image and Wait for MCR"
150146
147+
- script: |
148+
cd ./output
149+
sudo find . -mindepth 2 -type f -regextype posix-extended ! -iregex '.*\.(zip|tgz)$' -delete
150+
sudo find . -mindepth 2 -type f -print -exec mv {} . \;
151+
sudo rm -R -- */ && cd ..
152+
workingDirectory: "$(modulePath)"
153+
name: "PrepareArtifacts"
154+
displayName: "Prepare Artifacts"
155+
151156
- task: PublishTestResults@2
152157
inputs:
153158
testRunner: JUnit

0 commit comments

Comments
 (0)