Skip to content

Commit

Permalink
Dry Run.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
  • Loading branch information
rgrunber committed Mar 17, 2023
1 parent adb39e1 commit 233ce06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ node('rhel8'){

if(params.UPLOAD_LOCATION) {
stage('Snapshot') {
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-knative/ <<< \$'put -p *.vsix*'"
sh "echo sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-knative/ <<< \$'put -p *.vsix*'"
}
}

Expand All @@ -66,18 +66,18 @@ node('rhel8'){
// VS Code Marketplace
if (publishToMarketPlace.equals('true')) {
withCredentials([[$class: 'StringBinding', credentialsId: 'vscode_java_marketplace', variable: 'TOKEN']]) {
sh 'vsce publish -p ${TOKEN} --packagePath' + " ${vsix[0].path}"
sh 'echo vsce publish -p ${TOKEN} --packagePath' + " ${vsix[0].path}"
}
}
// Open-VSX Marketplace
if (publishToOVSX.equals('true')) {
withCredentials([[$class: 'StringBinding', credentialsId: 'open-vsx-access-token', variable: 'OVSX_TOKEN']]) {
sh 'ovsx publish -p ${OVSX_TOKEN}' + " --packagePath ${vsix[0].path}"
sh 'echo ovsx publish -p ${OVSX_TOKEN}' + " --packagePath ${vsix[0].path}"
}
}

stage "Promote the build to stable"
sh "sftp -C ${UPLOAD_LOCATION}/stable/vscode-knative/ <<< \$'put -p *.vsix*'"
sh "echo sftp -C ${UPLOAD_LOCATION}/stable/vscode-knative/ <<< \$'put -p *.vsix*'"
archive includes:"**.vsix*"
}

Expand Down

0 comments on commit 233ce06

Please # to comment.