Skip to content

Commit

Permalink
Fixing upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Nov 17, 2021
1 parent e3cfcee commit d06531a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def runBuild(platformName, configuration, headless = true){

if(configuration == 'StackVM'){
additionalParameters += "-DFEATURE_MESSAGE_COUNT=TRUE "
platform = "${platform}-StackVM"
platform = "${platformName}-StackVM"
buildDirectory = "build-StackVM"
}

Expand Down Expand Up @@ -326,6 +326,30 @@ def uploadStockReplacement(platform, configuration, archiveName, isStableRelease
}
}

def uploadStackVM(platform, configuration, archiveName, isStableRelease = false){

cleanWs()

unstash name: "packages-${archiveName}-${configuration}"

def wordSize = is32Bits(platform) ? "32" : "64"
def expandedBinaryFileName = sh(returnStdout: true, script: "ls build-StackVM/build/packages/PharoVM-*-${archiveName}-bin.zip").trim()

sshagent (credentials: ['b5248b59-a193-4457-8459-e28e9eb29ed7']) {
sh "scp -o StrictHostKeyChecking=no \
${expandedBinaryFileName} \
pharoorgde@ssh.cluster023.hosting.ovh.net:/home/pharoorgde/files/vm/pharo-spur${wordSize}-headless/${platform}"
sh "scp -o StrictHostKeyChecking=no \
${expandedBinaryFileName} \
pharoorgde@ssh.cluster023.hosting.ovh.net:/home/pharoorgde/files/vm/pharo-spur${wordSize}-headless/${platform}/latestStackVM${mainBranchVersion()}.zip"

if(isStableRelease){
sh "scp -o StrictHostKeyChecking=no \
${expandedBinaryFileName} \
pharoorgde@ssh.cluster023.hosting.ovh.net:/home/pharoorgde/files/vm/pharo-spur${wordSize}-headless/${platform}/stableStackVM${mainBranchVersion()}.zip"
}
}
}

def isPullRequest() {
return env.CHANGE_ID != null
Expand All @@ -352,6 +376,7 @@ def uploadPackages(platformNames){
for (platformName in platformNames) {
upload(platformName, "CoInterpreter", platformName, releaseFlag)
uploadStockReplacement(platformName, "CoInterpreter", "${platformName}-stockReplacement",releaseFlag)
uploadStackVM(platformName, "StackVM", "${platformName}-StackVM",releaseFlag)
}
}
}
Expand Down

0 comments on commit d06531a

Please sign in to comment.