-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsfile
36 lines (35 loc) · 1.12 KB
/
jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pipeline {
agent any
stages {
stage('presetup') {
steps {
git branch: 'master',
credentialsId: 'jenkins-timharsch.nopass',
url: '[email protected]:timharsch/react-app-with-enzyme.git'
}
} // end stage
stage('configure and start container') {
steps {
echo "Setup the containerized environment..."
sh './jenkins_start_integration_test_env.sh'
}
} // end stage
stage('Test') {
steps {
script {
echo "Run the tests"
sh './run_tests.sh'
}
}
} // end stage
} // end stages
post {
always {
junit 'reports/junit.xml'
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'reports/cobertura-coverage.xml',
conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0',
maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
cleanWs()
} // end always
} // end post
} // end pipeline