Skip to content

Commit

Permalink
Merged in SIM-2964 (pull request apache#4)
Browse files Browse the repository at this point in the history
[SIM-2964]: Adding release jobs to tvm

* Adding release jobs to tvm

* Update release job for tvm

* Update ci release to fail correctly

* Fix downloading wrong version in release

* Update to use Jenkins master lib

* Remove try catch

Approved-by: Spenser Gilliland <spenser@sima.ai>
  • Loading branch information
jeffuongsima committed May 14, 2020
1 parent 884f077 commit fff659a
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions ci_jobs/Jenkinsfile.release
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env groovy
library('sima-jenkins-lib')

def main() {
def job_name = env.JOB_NAME.split('/')[1]
def image

currentBuild.result = "SUCCESS"

node('docker') {
stage("Checkout"){
utils.checkoutBitbucket()
}

timeout(120) {
stage("Docker Pull") {
docker.withRegistry('', 'docker_creds') {
image = docker.image("simaai/n2a_compiler:latest")
image.pull()
}
}
}
timeout(120) {
image.inside("-m 32g --cpus=8") {
stage("Download Package") {
utils.record('download.log', {
sh "rm -rf *.whl"

tvm_pkg_name = "sima-tvm"
vinfo = readYaml file: "${env.WORKSPACE}/python/VERSION.in"
tvm_version = vinfo['major'] + "." + vinfo['minor'] + "." + vinfo['patch']

utils.downloadPythonPackage('jenkins_user', 'sima-pypi', tvm_pkg_name + "===" + tvm_version, 3)
sh "ls -alh"
}, true)
}

stage("Validate Package") {
//TODO: run tests on the package
}

stage("Promote Package(Staging)") {
utils.record('upload.log', {
utils.uploadPythonPackages('jenkins_user', 'sima-staging', '*.whl', 3)
}, true)
}
} // docker
} // timeout
} // node
} // main

utils.job_wrapper({
main()
}, 240)

0 comments on commit fff659a

Please sign in to comment.