Skip to content

Commit 5e7159e

Browse files
committed
Публикация preview
1 parent d5cd9fb commit 5e7159e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Jenkinsfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,33 @@ pipeline {
197197
}
198198
}
199199

200+
stage ('Publishing preview') {
201+
when { anyOf {
202+
branch 'release/preview';
203+
}
204+
}
205+
agent { label 'master' }
206+
207+
steps {
208+
209+
unstash 'dist'
210+
unstash 'vsix'
211+
212+
dir('targetContent') {
213+
sh '''
214+
ZIPS=../built
215+
NUGET=../built/nuget
216+
VSIX=../built/vscode
217+
mv $ZIPS/*.zip ./
218+
mv $VSIX/*.vsix ./
219+
220+
TARGET="/var/www/oscript.io/download/versions/preview/"
221+
sudo rsync -rv --delete --exclude mddoc*.zip --exclude *.src.rpm . $TARGET
222+
'''.stripIndent()
223+
}
224+
}
225+
}
226+
200227
stage ('Publishing latest') {
201228
when { anyOf {
202229
branch 'latest';

0 commit comments

Comments
 (0)