Skip to content

Commit

Permalink
chore: fix sftp (#208)
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Stocchi <[email protected]>

Signed-off-by: Luca Stocchi <[email protected]>
  • Loading branch information
lstocchi authored Dec 21, 2022
1 parent ce09a07 commit 2807fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ node('rhel8'){
stage('Snapshot') {
def filesToPush = findFiles(glob: '**/*.vsix')
def extensionJson = readJSON file: 'vss-extension.json'
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/openshift-vsts/openshift-vsts-${extensionJson.version}-${env.BUILD_NUMBER}.vsix <<< \$'put -p \"${filesToPush[0].path}\"'"
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/openshift-vsts/ <<< \$'put -p \"${filesToPush[0].path}\"'"
}
}

Expand All @@ -54,7 +54,7 @@ node('rhel8'){
stage "Promote the build to stable"
def vsix = findFiles(glob: '**/*.vsix')
def extensionJson = readJSON file: 'vss-extension.json'
sh "sftp -C ${UPLOAD_LOCATION}/stable/openshift-vsts/openshift-vsts-${extensionJson.version}-${env.BUILD_NUMBER}.vsix <<< \$'put -p \"${vsix[0].path}\"'"
sh "sftp -C ${UPLOAD_LOCATION}/stable/openshift-vsts/ <<< \$'put -p \"${vsix[0].path}\"'"
}
}
}

0 comments on commit 2807fee

Please sign in to comment.