forked from truenas/webui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile-Debian
45 lines (45 loc) · 1.23 KB
/
Jenkinsfile-Debian
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
pipeline {
agent {
node {
label 'FreeNAS-webui'
}
}
stages {
stage('Checkout') {
steps {
dir('src') {
checkout scm
}
}
}
stage('Cleanup') {
steps {
sh 'cd src ; rm -rf node_modules ; rm -f package-lock.json'
sh 'rm truenas-webui* || true'
sh 'rm src/debian/files || true'
}
}
stage('Build') {
steps {
sh 'cd src && sh mk-deb.sh 92B8B783F95A684C0A3B643073CF445610D143A1'
}
}
stage('Lint') {
steps {
sh "lintian --suppress-tags bad-distribution-in-changes-file truenas-webui*.changes"
}
}
stage('Push to buildd') {
steps {
withCredentials([file(credentialsId: 'dput.cf', variable: 'dputcfg')]) {
sh "dput -c \"${dputcfg}\" mini-buildd-mini-buildd-host truenas-webui*.changes"
}
}
}
}
post {
failure {
mail bcc: '', body: "<b>Jenkins: WebUI Build Failure</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> URL build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: Project name -> ${env.JOB_NAME}", to: "kris@ixsystems.com";
}
}
}