fix artifacts

This commit is contained in:
Joao Moreno 2018-11-07 16:29:22 +00:00
parent 86fa4e4957
commit f11391f6eb
2 changed files with 5 additions and 4 deletions

View file

@ -96,7 +96,8 @@ steps:
npm run gulp -- "vscode-linux-$(VSCODE_ARCH)-prepare-snap"
# Pack snap tarball artifact, in order to preserve file perms
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-$(VSCODE_ARCH).tar.gz"
mkdir -p $REPO/.build/linux/snap-tarball
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-tarball/snap-$(VSCODE_ARCH).tar.gz"
rm -rf $SNAP_TARBALL_PATH
(cd .build/linux && tar -czf $SNAP_TARBALL_PATH snap)
@ -107,4 +108,4 @@ steps:
displayName: 'Publish Pipeline Artifact'
inputs:
artifactName: snap-$(VSCODE_ARCH)
targetPath: .build/linux/snap-$(VSCODE_ARCH).tar.gz
targetPath: .build/linux/snap-tarball

View file

@ -11,7 +11,7 @@ steps:
displayName: 'Download Pipeline Artifact'
inputs:
artifactName: snap-$(VSCODE_ARCH)
targetPath: .build/linux/snap-$(VSCODE_ARCH).tar.gz
targetPath: .build/linux/snap-tarball
- script: |
set -e
@ -23,7 +23,7 @@ steps:
SNAP_ROOT="$REPO/.build/linux/snap/$ARCH"
# Unpack snap tarball artifact, in order to preserve file perms
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-$ARCH.tar.gz"
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-tarball/snap-$ARCH.tar.gz"
(cd .build/linux && tar -xzf $SNAP_TARBALL_PATH)
ls -la "$SNAP_ROOT"