Skip to content

Commit

Permalink
Публикация preview
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Mar 18, 2023
1 parent d5cd9fb commit 5e7159e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,33 @@ pipeline {
}
}

stage ('Publishing preview') {
when { anyOf {
branch 'release/preview';
}
}
agent { label 'master' }

steps {

unstash 'dist'
unstash 'vsix'

dir('targetContent') {
sh '''
ZIPS=../built
NUGET=../built/nuget
VSIX=../built/vscode
mv $ZIPS/*.zip ./
mv $VSIX/*.vsix ./
TARGET="/var/www/oscript.io/download/versions/preview/"
sudo rsync -rv --delete --exclude mddoc*.zip --exclude *.src.rpm . $TARGET
'''.stripIndent()
}
}
}

stage ('Publishing latest') {
when { anyOf {
branch 'latest';
Expand Down

0 comments on commit 5e7159e

Please sign in to comment.