forked from hamlet-io/engine-plugin-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
40 lines (36 loc) · 824 Bytes
/
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
#!groovy
pipeline {
options {
timestamps()
disableConcurrentBuilds()
quietPeriod(30)
}
agent none
stages {
stage('Run AWS Template Tests') {
agent {
label 'hamlet-latest'
}
environment {
GENERATION_PLUGIN_DIRS="${WORKSPACE}"
}
steps {
sh '''#!/usr/bin/env bash
./test/run_aws_template_tests.sh
'''
}
}
stage('Trigger Docker Build') {
when {
branch 'master'
beforeAgent true
}
agent none
steps {
build (
job: '../docker-hamlet/master'
)
}
}
}
}