forked from aquasecurity/aqua-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
58 lines (55 loc) · 1.61 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@Library('aqua-pipeline-lib@master')_
pipeline {
agent {
label 'automation_slaves'
}
options {
ansiColor('xterm')
timestamps()
skipStagesAfterUnstable()
skipDefaultCheckout()
buildDiscarder(logRotator(daysToKeepStr: '7'))
}
stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage("Helm Lint Git") {
agent {
dockerfile {
filename 'Dockerfile'
reuseNode true
}
}
steps {
script {
sh """
helm lint server/ && \
helm lint tenant-manager/ && \
helm lint enforcer/ && \
helm lint gateway/ && \
helm lint aqua-quickstart/ && \
helm lint kube-enforcer/ --set "aquaSecret.kubeEnforcerToken=Test123"
"""
}
}
}
}
//post {
// always {
// script {
// cleanWs()
// notifyFullJobDetailes subject: "${env.JOB_NAME} Pipeline | ${currentBuild.result}", emails: userEmail
// }
// }
//}
}