Remove bootstrapping code from Jenkinsfile
Change-Id: I444509902b64b5112d3ca579a5217680b83e1614 Reviewed-on: https://forge.frm2.tum.de/review/18618 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Bjoern Pedersen <bjoern.pedersen@frm2.tum.de>
This commit is contained in:
parent
8c5f602a99
commit
4b2260d77c
13
ci/Jenkinsfile
vendored
13
ci/Jenkinsfile
vendored
@ -89,22 +89,17 @@ node("master") {
|
||||
sh 'git show'
|
||||
}
|
||||
stage('(re-)generate image') {
|
||||
try {
|
||||
sh '''#!/bin/bash
|
||||
git worktree add tmpmaster refs/changes/17/18617/8
|
||||
sh '''#!/bin/bash
|
||||
git worktree add tmpmaster origin/master
|
||||
cd tmpmaster
|
||||
docker build --target base --tag jenkinsng.admin.frm2:5000/secop_base:latest \
|
||||
--tag secop_base:latest ci
|
||||
docker build --target base --tag secop_base:latest ci
|
||||
cd ..
|
||||
rm -rf tmpmaster
|
||||
'''
|
||||
} catch (all) {
|
||||
}
|
||||
}
|
||||
|
||||
stage('execute tests') {
|
||||
img = docker.image('jenkinsng.admin.frm2:5000/secop_base:latest')
|
||||
img.pull()
|
||||
img = docker.image('secop_base:latest')
|
||||
img.inside {
|
||||
run_tests('python2')
|
||||
}
|
||||
|
@ -18,6 +18,3 @@ To test images interactivly:
|
||||
The Jenkinsfile uses this Dockerfile (only approved checked-in versions from master)
|
||||
to build the images (a rebuild will only happen if the Dockerfile is changed as docker
|
||||
caches the images and build information) and run the test suite inside the container.
|
||||
|
||||
(Note: The initial version still has some bootstrapping glue, that will get
|
||||
changed in a followup).
|
||||
|
Loading…
x
Reference in New Issue
Block a user