-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
67 lines (51 loc) · 963 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
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
#!/usr/bin/env groovy
/*
* Jenkinsfile for AstroFaker
*
*
* Required Plug-ins
* -----------------
* - Warnings Next Generation
* - Slack Notification
*
*
* Required Shared Libraries
* -------------------------
* - dragons_ci
*
*
* by Bruno C. Quint
*
*/
@Library('dragons_ci@master') _
pipeline {
agent any
triggers {
pollSCM('H * * * *')
}
options {
skipDefaultCheckout(true)
buildDiscarder(logRotator(numToKeepStr: '10'))
timestamps()
}
environment {
PATH = "$JENKINS_HOME/anaconda3/bin:$PATH"
CONDA_ENV_NAME="astrofaker"
CONDA_ENV_FILE="conda_env.yml"
}
stages {
stage('Prepare') {
steps {
echo "$CONDA_ENV_NAME"
}
}
}
post {
success {
sendNotifications 'SUCCESSFUL'
}
failure {
sendNotifications 'FAILED'
}
}
}