forked from syndesisio/syndesis-openshift-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
32 lines (31 loc) · 1.07 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
node {
stage('Validate templates') {
slave {
withOpenshift {
withGo {
inside {
checkout scm
container(name: 'go') {
sh "support/validate-generated-templates.sh"
}
}
}
}
}
}
stage('Test templates') {
inNamespace(cloud: 'openshift', prefix: 'template-testing') {
checkout scm
createEnvironment(
cloud: 'openshift',
scriptEnvironmentVariables: ['OPENSHIFT_TEMPLATE_FROM_WORKSPACE': 'true', 'SYNDESIS_TEMPLATE_TYPE': 'syndesis-ci', 'WORKSPACE': "$WORKSPACE"],
environmentSetupScriptUrl: "https://raw.githubusercontent.com/syndesisio/syndesis-system-tests/master/src/test/resources/setup.sh",
environmentTeardownScriptUrl: "https://raw.githubusercontent.com/syndesisio/syndesis-system-tests/master/src/test/resources/teardown.sh",
waitForServiceList: ['syndesis-rest', 'syndesis-ui', 'syndesis-verifier'],
waitTimeout: 600000L,
namespaceCleanupEnabled: false,
namespaceDestroyEnabled: false
)
}
}
}