-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
53 lines (51 loc) · 1.06 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
pipeline {
agent {
label 'dory'
}
environment {
PATH = "$HOME/anaconda3/envs/sgains3/bin:$HOME/anaconda3/bin:$PATH"
}
options {
disableConcurrentBuilds()
}
stages {
stage ('Start') {
steps {
slackSend (
color: '#FFFF00',
message: "STARTED: Job '${env.JOB_NAME} " +
"[${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
)
}
}
stage('Build') {
steps {
sh '''
echo $HOME
echo $WORKSPACE
pwd
Rscript run_jenkins_tests.R
'''
}
}
}
post {
always {
junit 'junit_test_results.xml'
}
success {
slackSend (
color: '#00FF00',
message: "SUCCESSFUL: Job '${env.JOB_NAME} " +
"[${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
)
}
failure {
slackSend (
color: '#FF0000',
message: "FAILED: Job '${env.JOB_NAME} " +
"[${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
)
}
}
}