forked from CTSRD-CHERI/de10pro-hps-ubuntu-sdcard-cheri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
47 lines (45 loc) · 1.56 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
37
38
39
40
41
42
43
44
45
46
47
pipeline {
agent { label 'imagebuilder' }
options { buildDiscarder(logRotator(numToKeepStr: '1')) }
environment {
CHERI = 'beri'
MULTI = '1'
}
stages {
stage('Pull artifacts') {
steps {
// copyArtifacts filter: '**', fingerprintArtifacts: true, projectName: 'CPU1-DE10-multi-synth/master'
// copyArtifacts filter: '**', fingerprintArtifacts: true, projectName: 'thunderclap-qemu/master'
copyArtifacts filter: 'cheri/boards/terasic_de10pro_sx/output_files/DE10_Pro.sof', fingerprintArtifacts: true, projectName: "CPU1-DE10-multi-synth/cheri=${env.CHERI},cheri_dimm=1GB,dcache=writethrough,invalidate=push,label=bionic,multi=${env.MULTI}/", selector: lastSuccessful()
}
}
stage ("Building") {
steps {
println "Building ${env.CHERI} with ${env.MULTI} cores"
sh '''#!/bin/bash
IMAGEFILE="s10-${CHERI}-multi${MULTI}-sd.img.xz"
rm -f $IMAGEFILE || true
#source $SOCEDS_DEST_ROOT/env.sh &&
./build_sdcard.sh intel-a10soc-devkit
mv sdimage.img.xz $IMAGEFILE
'''
}
}
/*
stage ('Build Enclustra AA1/PE1') {
steps {
sh '''#!/bin/bash
rm -f enclustra-sd.img.xz || true
source $SOCEDS_DEST_ROOT/env.sh && ./build_sdcard.sh enclustra-mercury-aa1-pe1
mv sdimage.img.xz enclustra-sd.img.xz
'''
}
}
*/
}
post {
always {
archiveArtifacts artifacts: "*-sd.img.xz,cheri/boards/terasic_de10pro_sx/output_files/*.rbf,cheri/boards/terasic_de10pro_sx/output_files/*-hps.sof", fingerprint:true
}
}
}