-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOLDJenkinsfile
More file actions
80 lines (79 loc) · 1.62 KB
/
OLDJenkinsfile
File metadata and controls
80 lines (79 loc) · 1.62 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
library "aplazame-shared-library"
pipeline {
agent {
kubernetes {
yamlFile "/jenkins/php.yaml"
}
}
environment {
FOLDER = "dist"
foldersCache = '"vendor/"'
}
options {
disableConcurrentBuilds()
ansiColor('xterm')
}
stages {
stage('Test Sonarqube') {
when {
not {
tag "*"
}
beforeAgent true
}
agent {
kubernetes {
yamlFile "/jenkins/jenkins-sonar.yaml"
}
}
environment {
SONAR_TEST = credentials('SONAR_TEST')
CODE_SOURCE_DEFAULT = "*"
GITHUB_TOKEN = credentials('gh-releases-token-old')
}
steps {
scmSkip()
container('sonar') {
sonarScan(SONAR_TEST,CODE_SOURCE_DEFAULT)
}
}
}
//stage("Get cache") {
// steps {
// script {
// HASH = sh(script: 'md5sum composer.json | awk \'{print \$1}\'', returnStdout: true).trim()
// CACHE_KEY = 'v1-dependencies-' + HASH
//
// container('php') {
// loadCache(CACHE_KEY)
// }
// }
// }
//}
//stage("Composer Install") {
// steps {
// container('php') {
// sh """
// composer install -n --prefer-dist
// """
// }
// }
//}
//stage("Upload Cache") {
// steps {
// container('php') {
// saveCache(CACHE_KEY,["${foldersCache}"])
// }
// }
//}
//stage("CS Style") {
// steps {
// container('php') {
// sh """
// make style
// """
// }
// }
//}
}
}