Skip to content

Commit a80c482

Browse files
committed
Add initial Jenkinsfile
Jenkins will checkout code, static analysis and then builds it. Signed-off-by: Ian Pozella <[email protected]>
1 parent 64e4021 commit a80c482

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Jenkinsfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node('docker && imgtec') {
2+
def docker_image
3+
docker_image = docker.image "imgtec/creator-builder:latest" // TODO for now using the creator one
4+
docker_image.inside {
5+
stage('Prepare') {
6+
checkout scm
7+
}
8+
stage('Build') {
9+
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu- pistachio_marduk_defconfig'
10+
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu-'
11+
}
12+
stage('Upload') {
13+
archiveArtifacts 'u-boot-pistachio-nor.img'
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)