Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to publish to distext via ssh #286

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 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,32 +185,35 @@ 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') {
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"
label 'worker'
image "ingeniacontainers.azurecr.io/publisher:1.8"
}
}
steps {
unstash 'publish_files'
unzip zipFile: 'docs.zip', dir: '.'
publishDistExt("_docs", DISTEXT_PROJECT_DIR, false)
unstash 'build'
publishPyPi("dist/*")
}
}
Expand Down