forked from d2iq-archive/marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.permissive.si
43 lines (40 loc) · 1.9 KB
/
Jenkinsfile.permissive.si
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
#!/usr/bin/env groovy
timeout(120) {
node('py36') {
wrap([$class: 'MesosSingleUseSlave']) {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
// Hardcoded default values are:
// DC/OS OS: channel="testing/pull/1739", for open cluster
// DC/OS EE: channel="testing/pull/1296", for strict, permissive or disabled clusters
// The channel can be passed to the job in Jenkins (Build with Parameters) so that this job can be executed against any PR/cluster.
properties([
// Run pipeline at 2:00, 8:00, 14:00 and 20:00.
pipelineTriggers([cron('0 2,8,14,20 * * *')]),
parameters([
string(name: 'channel',
defaultValue: 'testing/pull/1296',
description: 'PR to start the cluster from e.g. testing/pull/1739'
)]
)
])
stage("Run System Integration Test Pipeline") {
try {
checkout scm
withCredentials(
[ [$class: 'AmazonWebServicesCredentialsBinding', credentialsId: 'mesosphere-ci-marathon', accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY'],
[$class: 'FileBinding', credentialsId: '11fcc957-5156-4470-ae34-d433da88248a', variable: 'DOT_SHAKEDOWN'],
[$class: 'StringBinding', credentialsId: 'ca159ad3-7323-4564-818c-46a8f03e1389', variable: 'DCOS_LICENSE'],
[$class: 'StringBinding', credentialsId: '7bdd2775-2911-41ba-918f-59c8ae52326d', variable: 'DOCKER_HUB_USERNAME'],
[$class: 'StringBinding', credentialsId: '42f2e3fb-3f4f-47b2-a128-10ac6d0f6825', variable: 'DOCKER_HUB_PASSWORD']
]) {
sh """./ci/si_pipeline.sh $params.channel permissive"""
}
} finally {
junit allowEmptyResults: true, testResults: 'shakedown.xml'
archive includes: "diagnostics.zip"
}
}
}
}
}
}