Skip to content

Commit

Permalink
CRAYSAT-1126: Jenkinsfile changes for Python packaging
Browse files Browse the repository at this point in the history
This commit modifies the Jenkinsfile to build a Python package.
* Add a stage in the parallel block to use the Makefile to build
  the Python package
* Use the `publishCsmPythonModules` function to publish.

Test Description: Checked results of multibranch pipeline
  • Loading branch information
Eli Kamin authored and rkleinman-hpe committed Oct 19, 2021
1 parent 7df461c commit 775d058
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Jenkinsfile.github
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ pipeline {

environment {
NAME = "cray-product-catalog"
APP_NAME = "cray-product-catalog-update"
PYMOD_NAME = "cray-product-catalog"
DESCRIPTION = "Update a product catalog with product/version artifacts."
APP_NAME = "cray-product-catalog-update"
IS_STABLE = getBuildIsStable()
// Set PATH so that commands installed with pip --user are accessible
PATH = "${env.HOME}/.local/bin:${env.PATH}"
}

stages {
Expand Down Expand Up @@ -69,6 +72,15 @@ pipeline {
sh "make chart"
}
}

stage('Python Package'){
steps {
sh "make pymod_prepare"
sh "make pymod_build"
sh "make pymod_test"
}
}

}
}

Expand All @@ -80,8 +92,8 @@ pipeline {
steps {
publishCsmDockerImage(image: env.APP_NAME, tag: env.DOCKER_VERSION, isStable: env.IS_STABLE)
publishCsmHelmCharts(component: env.NAME, chartsPath: "${WORKSPACE}/kubernetes/.packaged", isStable: env.IS_STABLE)

publishCsmPythonModules(module: env.PYMOD_NAME, isStable: env.IS_STABLE)
}
}
}
}
}

0 comments on commit 775d058

Please sign in to comment.