generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 9
/
acceptance-test.jenkins
69 lines (67 loc) · 1.79 KB
/
acceptance-test.jenkins
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
pipeline {
agent {
node {
label 'local'
}
}
tools { go 'hopsworks-terraform' }
environment {
TF_ACCTEST_LOG_DIR="/home/jenkinsmaster/terraform/acc-test-logs/${currentBuild.number}"
TF_ACCTEST_LOG_LEVEL="debug"
TF_VAR_skip_aws="false"
TF_VAR_skip_azure="false"
TF_VAR_azure_resource_group="terraform_acceptance_tests"
TF_VAR_aws_profile="terraform"
TF_VAR_aws_region="eu-west-1"
ACCTEST_PARALLELISM="4"
ACCTEST_TIMEOUT="720m"
PATH="/home/jenkinsmaster/terraform/:/home/jenkinsmaster/go/bin:${env.PATH}"
HOPSWORKSAI_API_KEY=credentials('f2115d9e-c7ed-4a3c-aa71-7082b27b6215')
}
stages {
stage ('install gloangci-lint') {
steps {
sh '''
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
golangci-lint --version
'''
}
}
stage ('install go-junit-report'){
steps {
sh '''
go install github.com/jstemmer/go-junit-report/v2@latest
'''
}
}
stage ('build'){
steps {
sh '''
make
'''
}
}
stage ('sweep'){
steps {
sh '''
make sweep
'''
}
}
stage ('test'){
steps {
sh '''
make testacc
'''
}
}
}
post {
always {
junit 'report.xml'
sh '''
make cleanupacc
'''
}
}
}