Skip to content

Commit c9079e2

Browse files
committed
Upload using sftp to nightly and stable locations
Signed-off-by: Denis Golovin [email protected]
1 parent 2d5000a commit c9079e2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Jenkinsfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ node('rhel8'){
7272
def filesToPush = findFiles(glob: '**.vsix*')
7373
for (int i = 0; i < filesToPush.size(); i++) {
7474
echo "Uploading ${filesToPush[i].path}"
75-
sh "scp --help"
7675
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-openshift-tools/ <<< \$'put -p \"${filesToPush[i].path}\"'"
7776
}
7877
}
@@ -93,8 +92,14 @@ node('rhel8'){
9392
}
9493

9594
stage "Promote the build to stable"
96-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 *.vsix* ${UPLOAD_LOCATION}/stable/vscode-openshift-tools/"
97-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 *.tgz* ${UPLOAD_LOCATION}/stable/vscode-openshift-tools/"
95+
script {
96+
def filesToPush = findFiles(glob: '**.vsix*')
97+
for (int i = 0; i < filesToPush.size(); i++) {
98+
echo "Uploading ${filesToPush[i].path}"
99+
sh "sftp -C ${UPLOAD_LOCATION}/stable/vscode-openshift-tools/ <<< \$'put -p \"${filesToPush[i].path}\"'"
100+
}
101+
}
102+
98103
archive includes:"**.vsix*,**.tgz*"
99104
}
100105
}

0 commit comments

Comments
 (0)