File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,19 @@ phases:
129
129
130
130
# tar the tarball directory into the drop directory.
131
131
- script : |
132
- $(docker.run) $(docker.tb.map) $(docker.drop.map) $(imageName) /bin/bash -c '
132
+ $(docker.run) $(docker.tb.map) $(docker.drop.map) $(docker.tb.work) $( imageName) /bin/bash -c '
133
133
mkdir -p /drop/tarball/
134
- tar -zcf "/drop/tarball/$(tarballName).tar.gz" "/tb/$(tarballName)"'
134
+ smokeTestPackages="$(tarballName)/prebuilt/smoke-test-packages"
135
+ # smokeTestPackages is a package cache, with redundant data and unnecessary structure. E.g.
136
+ # $smokeTestPackages/name/version/name.version.nupkg <- We want this.
137
+ # $smokeTestPackages/name/version/lib/net46/name.dll <- This is already in the nupkg.
138
+ # This find moves the nupkg files into $smokeTestPackages:
139
+ find "$smokeTestPackages" -iname "*.nupkg" -exec mv {} "$smokeTestPackages" \;
140
+ # This find removes all non-nupkg files, which are not wanted:
141
+ find "$smokeTestPackages" -not -iname "*.nupkg" -delete
142
+ # Make one .tar.gz for build, another for extras necessary to smoke test:
143
+ tar --numeric-owner "--exclude=$smokeTestPackages" -zcf "/drop/tarball/$(tarballName).tar.gz" "$(tarballName)"
144
+ tar --numeric-owner -zcf "/drop/tarball/$(tarballName)-smoke-test-prereqs.tar.gz" "$smokeTestPackages"'
135
145
displayName: Copy tarball to output
136
146
condition: and(succeeded(), eq(variables['buildOfflineTarball'], true))
137
147
You can’t perform that action at this time.
0 commit comments