Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Adds restore static and dynamic methods, instead of making the librar…
Browse files Browse the repository at this point in the history
…y type a parameter
  • Loading branch information
perdasilva committed Oct 19, 2019
1 parent 2b00c0d commit 5e82abe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions cd/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ def restore_artifact(variant, libtype) {
}
}


// Restores the statically linked libmxnet for the given variant
def restore_static_libmxnet(variant) {
restore_artifact(variant, 'static')
}


// Restores the dynamically linked libmxnet for the given variant
def restore_dynamic_libmxnet(variant) {
restore_artifact(variant, 'dynamic')
}

// A generic pipeline that can be used by *most* CD jobs
// It can be used when implementing the pipeline steps in the Jenkins_steps.groovy
// script for a particular delivery channel. However, it should also implement the
Expand Down
2 changes: 1 addition & 1 deletion cd/python/docker/Jenkins_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_environment(mxnet_variant) {
def build(mxnet_variant) {
ws("workspace/python_docker/${mxnet_variant}/${env.BUILD_NUMBER}") {
ci_utils.init_git()
cd_utils.restore_artifact(mxnet_variant, 'static')
cd_utils.restore_static_libmxnet(mxnet_variant)

// package wheel file
def nvidia_docker = mxnet_variant.startsWith('cu')
Expand Down
2 changes: 1 addition & 1 deletion cd/python/pypi/Jenkins_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_environment(mxnet_variant) {
def build(mxnet_variant) {
ws("workspace/python_pypi/${mxnet_variant}/${env.BUILD_NUMBER}") {
ci_utils.init_git()
cd_utils.restore_artifact(mxnet_variant, 'static')
cd_utils.restore_static_libmxnet(mxnet_variant)

// create wheel file
def environment = get_environment(mxnet_variant)
Expand Down

0 comments on commit 5e82abe

Please sign in to comment.