forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in SIM-2964 (pull request apache#4)
[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
1 parent
884f077
commit fff659a
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |