on master help sign in
unity8/Jenkinsfile
41 lines 964 B history raw
1pipeline {
2 agent any
3 stages {
4 stage('Preparation') {
5 steps {
6 dir(path: 'source') {
7 git 'https://github.com/ubports/unity8.git'
8 }
9 }
10 }
11 stage('Build source') {
12 steps {
13 sh 'rm -f ./* || true'
14 sh '''cd source
15export GIT_COMMIT=$(git rev-parse HEAD)
16export GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
17cd ..
18/usr/bin/generate-git-snapshot
19'''
20 }
21 }
22 stage('Build binary - armhf') {
23 steps {
24 sh '''export architecture="armhf"
25export REPOS="xenial"
26/usr/bin/generate-reprepro-codename "${REPOS}"
27/usr/bin/build-and-provide-package'''
28 }
29 }
30 stage('Results') {
31 steps {
32 archiveArtifacts '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo'
33 }
34 }
35 stage('Cleanup') {
36 steps {
37 cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true)
38 }
39 }
40 }