-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile
54 lines (54 loc) · 1.44 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env groovy
String cron_string = BRANCH_NAME == "master" ? "H H(0-4) * * *" : ""
pipeline {
environment {
GIT_REPO_NAME = 'automation-infra'
GIT_CREDS = credentials('av-jenkins-reader')
HABERTEST_HEARTBEAT_SERVER = 'https://heartbeat-server.tls.ai'
HABERTEST_PROVISIONER = 'https://provisioner.tls.ai'
HABERTEST_SSL_CERT='${HOME}/.habertest/habertest.crt'
HABERTEST_SSL_KEY='${HOME}/.habertest/habertest.key'
}
agent {
label 'automation'
}
libraries {
lib('pipeline-library')
}
options {
timestamps()
disableConcurrentBuilds()
timeout(time: 4, unit: 'HOURS')
ansiColor('xterm')
buildDiscarder(logRotator(numToKeepStr:'50'))
}
triggers {
issueCommentTrigger('^\\/rebuild')
}
stages {
stage('Run unit tests') {
steps {
echo "TODO: Not implemented yet"
}
}
stage('Tests on docker') {
steps {
sh (
script: "./run/env_vars.sh automation_infra/tests/basic_tests/ --num-parallel 3"
)
}
}
} // end of stages
post {
success {
cleanWs()
}
always {
dir ('automation-infra') {
script {
coreLib.notification()
}
}
}
}
} // end of pipeline