Skip to content

Commit

Permalink
migrate to publish to distext via ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Feliu committed Dec 23, 2024
1 parent 311a3af commit f41e0fa
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ pipeline {
stage('Build wheels') {
steps {
bat "py -${DEFAULT_PYTHON_VERSION} -m tox -e build"
stash includes: 'dist\\*', name: 'build'
archiveArtifacts artifacts: "dist\\*"
}
}
stage('Make a static type analysis') {
Expand All @@ -138,6 +140,10 @@ pipeline {
stage('Generate documentation') {
steps {
bat "py -${DEFAULT_PYTHON_VERSION} -m tox -e docs"
bat """
"C:\\Program Files\\7-Zip\\7z.exe" a -r docs.zip -w _docs -mem=AES256
"""
stash includes: 'docs.zip', name: 'docs'
}
}
stage("Run unit tests") {
Expand Down Expand Up @@ -179,33 +185,36 @@ pipeline {
}
}
}
stage('Archive') {
steps {
bat """
"C:\\Program Files\\7-Zip\\7z.exe" a -r docs.zip -w _docs -mem=AES256
"""
stash includes: 'dist\\*, docs.zip', name: 'publish_files'
archiveArtifacts artifacts: "dist\\*, docs.zip"
}
}
}
}
stage('Publish ingeniamotion') {
when {
stage('Publish documentation') {
/* when {
beforeAgent true
branch BRANCH_NAME_MASTER
} */
agent {
label "worker"
}
steps {
unstash 'docs'
unzip zipFile: 'docs.zip', dir: '.'
// publishDistExt("_docs", DISTEXT_PROJECT_DIR, false)
}
}
stage('Publish to pypi') {
/*when {
beforeAgent true
branch BRANCH_NAME_MASTER
}*/
agent {
docker {
label "worker"
image "ingeniacontainers.azurecr.io/publisher:1.8"
label 'worker'
image PUBLISHER_DOCKER_IMAGE
}
}
steps {
unstash 'publish_files'
unzip zipFile: 'docs.zip', dir: '.'
publishDistExt("_docs", DISTEXT_PROJECT_DIR, false)
publishPyPi("dist/*")
unstash 'build'
// publishPyPi("dist/*")
}
}
}
Expand Down

0 comments on commit f41e0fa

Please sign in to comment.