-
Notifications
You must be signed in to change notification settings - Fork 0
/
.check-build
34 lines (33 loc) · 1.01 KB
/
.check-build
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
pipeline {
agent any
triggers {
pollSCM('H * * * *')
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5'))
}
stages {
stage('build') {
steps {
sh '''
export
bash setup.sh
TARGET=\$(cat bin/fetch-sources | grep ^DEFAULT_SOURCE_TARGET | cut -d = -f 2)
source project/setup.sh
cp ~/oe/conf/site.conf conf
mv tmp tmp-save
rm -rf tmp-save
bitbake -k \$TARGET
'''
}
}
}
post {
failure {
emailext body: 'Check console output at $BUILD_URL to view the results. \n\n ${CHANGES} \n\n -------------------------------------------------- \n${BUILD_LOG, maxLines=100, escapeHtml=false}',
to: '[email protected]',
subject: 'Build failed in Jenkins: $PROJECT_NAME - #$BUILD_NUMBER'
}
}
}