Add missing env variables to maven container
def mavenVersion='3.3.9'
-
+node {
slave {
withOpenshift {
- //Comment out until pvc issues are resolved
- //withMaven(mavenImage: "maven:${mavenVersion}", serviceAccount: "jenkins", mavenRepositoryClaim: "m2-local-repo", mavenSettingsXmlSecret: 'm2-settings') {
- withMaven(mavenImage: "maven:${mavenVersion}", serviceAccount: "jenkins", mavenSettingsXmlSecret: 'm2-settings') {
+ withMaven(mavenImage: "maven:${mavenVersion}",
+ envVars: [ containerEnvVar(key:'GITHUB_OAUTH_CLIENT_ID', value: "${env.GITHUB_OAUTH_CLIENT_ID}"), containerEnvVar(key:'GITHUB_OAUTH_CLIENT_SECRET', value: "${env.GITHUB_OAUTH_CLIENT_SECRET}") ],
+ serviceAccount: "jenkins", mavenRepositoryClaim: "m2-local-repo", mavenSettingsXmlSecret: 'm2-settings') {
inside {
def testingNamespace = generateProjectName()
-
checkout scm
stage 'Build'
@@ -18,7 +17,7 @@ slave {
stage 'System Tests'
test(component: 'syndesis-rest', namespace: "${testingNamespace}", serviceAccount: 'jenkins')
}
-
+ }
}
}
}
