-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
43 lines (39 loc) · 1.47 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
37
38
39
40
41
42
43
@Library(['github.com/indigo-dc/[email protected]']) _
def projectConfig
pipeline {
agent any
environment {
O3WEBAPP_DOCKER_TAG = "${env.BRANCH_NAME == 'main' ? 'stage' : env.BRANCH_NAME}"
//O3WEBAPP_DOCKER_TARGET = "${env.BRANCH_NAME == 'main' ? 'production' : 'development'}"
O3WEBAPP_DOCKER_TARGET = "production"
}
stages {
stage('SQA baseline criterion: QC.Sty & QC.Uni & QC.Sec & QC.Doc') {
steps {
script {
projectConfig = pipelineConfig(
configFile: '.sqa/config.yml',
scmConfigs: [ localBranch: true ],
validatorDockerImage: 'eoscsynergy/jpl-validator:1.2.1'
)
buildStages(projectConfig)
}
}
post {
always {
// replace path in the docker container with relative path
sh "sed -i 's/\\/sqaaas-build/./gi' eslint-codestyle.xml"
recordIssues(
enabledForFailure: true, aggregatingResults: true,
tool: checkStyle(pattern: 'eslint-codestyle.xml',
reportEncoding:'UTF-8',
name: 'CheckStyle')
)
}
cleanup {
cleanWs()
}
}
}
}
}