-
Notifications
You must be signed in to change notification settings - Fork 21
/
Jenkinsfile
36 lines (36 loc) · 1.09 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
pipeline {
agent {
node {
label 'nodejs-agent-v1'
}
}
options {
buildDiscarder(logRotator(numToKeepStr: '50'))
}
stages {
stage('Node version') {
steps {
sh '. /usr/bin/load_nvm && nvm use 6'
}
}
stage('Make') {
steps {
sh '. /usr/bin/load_nvm && make clean all'
archiveArtifacts artifacts: "dist/zimbra_drive.tgz", fingerprint: true
archiveArtifacts artifacts: "dist/zimbradrive.tar.gz", fingerprint: true
archiveArtifacts artifacts: "dist/zimbra_drive.md5", fingerprint: true
}
}
}
post {
always {
script {
GIT_COMMIT_EMAIL = sh (
script: 'git --no-pager show -s --format=\'%ae\'',
returnStdout: true
).trim()
}
emailext attachLog: true, body: '$DEFAULT_CONTENT', recipientProviders: [requestor()], subject: '$DEFAULT_SUBJECT', to: "${GIT_COMMIT_EMAIL}"
}
}
}