blob: 0fa6284c50b63f75291cf2a9463b6a492749298d (
plain)
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
48
49
50
51
52
53
54
55
|
pipeline {
agent {
docker {
image 'u-boot-builder'
args '--network jenkins_network'
}
}
environment {
NEXUS_URL = 'http://172.23.0.6:8081/nexus'
NEXUS_CREDS = credentials('nexus-credentials')
}
options {
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('Build and Publish'){
matrix {
axes {
axis {
name 'CONFIG'
values 'orangepi_pc_defconfig'
}
}
stages {
stage('Make config') {
steps {
sh 'make ${CONFIG}'
}
}
stage('Build') {
steps {
sh 'make CROSS_COMPILE=arm-linux-gnueabi- -j$(nproc)'
}
}
stage('Upload to nexus'){
steps {
sh 'echo $NEXUS_CREDS'
sh 'curl -u "$NEXUS_CREDS" --upload-file u-boot.bin "$NEXUS_URL/repository/u-boot/builds/${BUILD_NUMBER}/u-boot.bin"'
}
}
}
}
}
}
post {
always {
cleanWs()
}
}
}
|