]> Dogcows Code - chaz/p5-HTTP-AnyUA/blob - Jenkinsfile
add jenkinsfile
[chaz/p5-HTTP-AnyUA] / Jenkinsfile
1 pipeline {
2 agent none
3 /* environment { */
4 /* HOME = '/tmp/whatever' */
5 /* } */
6 stages {
7 stage('Build') {
8 agent {
9 dockerfile {
10 filename 'Dockerfile.test'
11 args '-u root'
12 }
13 }
14 environment {
15 HARNESS_OPTIONS = 'fTAP-Formatter-JUnit'
16 HARNESS_TIMER = '1'
17 PERL_TEST_HARNESS_DUMP_TAP = 'testreports'
18 }
19 steps {
20 /* sh 'mkdir -p $HOME' */
21 sh 'make bootstrap dist'
22 sh 'dzil test --keep'
23 stash includes: 'HTTP-AnyUA-*.tar.gz', name: 'dist'
24 archiveArtifacts artifacts: 'HTTP-AnyUA-*.tar.gz', fingerprint: true
25 }
26 post {
27 always {
28 junit '.build/latest/testreports/**/*.junit.xml'
29 /* have to clean up else root-owned files will be left in
30 * the workspace directory */
31 sh 'make clean'
32 /* sh 'chown -R $(stat -c %u .):$(stat -c %g .) .' */
33 }
34 }
35 }
36 stage('Test') {
37 agent {
38 dockerfile {
39 filename 'Dockerfile.test'
40 args '-u root'
41 }
42 }
43 steps {
44 unstash 'dist'
45 sh 'ls -lh'
46 sh 'cpanm *.tar.gz'
47 }
48 }
49 }
50 }
51
This page took 0.034575 seconds and 4 git commands to generate.