aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-05-23 14:14:18 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-05-23 14:14:18 -0700
commit40226370b428e6ba0a4bb8517f00e42807cae894 (patch)
treefb912e3fd1541f519914a99da609a595db225232 /Jenkinsfile
parent222f59dad4a611d5e559aa546f255258ad065bb1 (diff)
downloadcryptography-40226370b428e6ba0a4bb8517f00e42807cae894.tar.gz
cryptography-40226370b428e6ba0a4bb8517f00e42807cae894.tar.bz2
cryptography-40226370b428e6ba0a4bb8517f00e42807cae894.zip
Fixes #3573 -- archive the built docs in that builder (#3580)
* Fixes #3573 -- archive the built docs in that builder * syntax * try it without this * I am an idiot * this is unused * uhh, let's try this * maybe this? * eh, html is the only thing * ffffuuuu * Ignore doctree * broader exclude * This works now
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile20
1 files changed, 16 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 3710b4c1..7693d1af 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -61,7 +61,14 @@ def configs = [
[
label: 'docker',
imageName: 'pyca/cryptography-runner-ubuntu-rolling',
- toxenvs: ['py27', 'py35', 'docs', 'pep8', 'py3pep8', 'randomorder'],
+ toxenvs: ['py27', 'py35', 'pep8', 'py3pep8', 'randomorder'],
+ ],
+ [
+ label: 'docker',
+ imageName: 'pyca/cryptography-runner-ubuntu-rolling',
+ toxenvs: ['docs'],
+ artifacts: 'cryptography/docs/_build/html/**',
+ artifactExcludes: '**/*.doctree',
],
[
label: 'docker',
@@ -156,7 +163,7 @@ def checkout_git(label) {
"""
}
}
-def build(toxenv, label, imageName) {
+def build(toxenv, label, imageName, artifacts, artifactExcludes) {
try {
timeout(time: 30, unit: 'MINUTES') {
@@ -248,6 +255,9 @@ def build(toxenv, label, imageName) {
bash <(curl -s https://codecov.io/bash) -e JOB_BASE_NAME,LABEL
"""
}
+ if (artifacts) {
+ archiveArtifacts artifacts: artifacts, excludes: artifactExcludes
+ }
}
}
}
@@ -262,6 +272,8 @@ def builders = [:]
for (config in configs) {
def label = config["label"]
def toxenvs = config["toxenvs"]
+ def artifacts = config["artifacts"]
+ def artifactExcludes = config["artifactExcludes"]
for (_toxenv in toxenvs) {
def toxenv = _toxenv
@@ -273,7 +285,7 @@ for (config in configs) {
node(label) {
stage(combinedName) {
docker.image(imageName).inside {
- build(toxenv, label, imageName)
+ build(toxenv, label, imageName, artifacts, artifactExcludes)
}
}
}
@@ -283,7 +295,7 @@ for (config in configs) {
builders[combinedName] = {
node(label) {
stage(combinedName) {
- build(toxenv, label, '')
+ build(toxenv, label, '', null, null)
}
}
}