-
Notifications
You must be signed in to change notification settings - Fork 12
/
Jenkinsfile
27 lines (27 loc) · 1.09 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
node('docker && imgtec') {
def docker_image
docker_image = docker.image "imgtec/creator-builder:latest" // TODO for now using the creator one
docker_image.inside {
stage('Prepare') {
checkout([$class: 'GitSCM',
userRemoteConfigs: scm.userRemoteConfigs,
branches: scm.branches,
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
submoduleCfg: scm.submoduleCfg,
browser: scm.browser,
gitTool: scm.gitTool,
extensions: scm.extensions + [
[$class: 'CleanCheckout'],
[$class: 'PruneStaleBranch'],
],
])
}
stage('Build') {
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu- pistachio_marduk_defconfig'
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu-'
}
stage('Upload') {
archiveArtifacts 'u-boot-pistachio*.img'
}
}
}