Skip to content

Commit 2807fee

Browse files
authored
chore: fix sftp (#208)
Signed-off-by: Luca Stocchi <[email protected]> Signed-off-by: Luca Stocchi <[email protected]>
1 parent ce09a07 commit 2807fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ node('rhel8'){
3535
stage('Snapshot') {
3636
def filesToPush = findFiles(glob: '**/*.vsix')
3737
def extensionJson = readJSON file: 'vss-extension.json'
38-
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/openshift-vsts/openshift-vsts-${extensionJson.version}-${env.BUILD_NUMBER}.vsix <<< \$'put -p \"${filesToPush[0].path}\"'"
38+
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/openshift-vsts/ <<< \$'put -p \"${filesToPush[0].path}\"'"
3939
}
4040
}
4141

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

0 commit comments

Comments
 (0)