Jenkinsfile.uboot 1.28 KB
Newer Older
1
node {
2
    gitUrl = 'https://source.puri.sm/librem5/image-builder.git'
3
    artifacts = 'files/uboot-*/*'
4
    branch = 'master'
5

6
7
8
9
10
11
12
    parameters {
        string(name: 'board', defaultValue: "imx6", description: 'What board type to build for?')
        string(name: 'build_type', defaultValue: "unstable", description: 'What type of build is this?')
        string(name: 'publish', defaultValue: "false", description: 'Should the image get published?')
        string(name: 'MAKE_OPTS', defaultValue: "", description: 'extra make options')
    }

13
    stage('Setup') {
14
        git url: gitUrl, branch: branch
15
16
    }
    stage('Build u-boot') {
17
        sh "cd build && MAKE_OPTS=${MAKE_OPTS} ./build_uboot.sh -b ${board}"
18
19
    }
    stage('Publish') {
20
21
22
23
24
        if( "${params.publish}"=="true" ) {
            sh "bin/publish_ci_files -b ${BUILD_NUMBER} -t uboot -T ${build_type} -o files files/*" 
        } else {
            echo "This kernel will not be published"
        }
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    }
    stage('Results') {
        archive artifacts
    }
    stage( 'Clean up' ) {
        deleteDir() /* clean up our workspace */
    }
    stage( 'Notify' ) {
        mail to: 'librem5-team@lists.puri.sm',
             subject: "Build: ${currentBuild.fullDisplayName}",
             body: "Build finished ${env.BUILD_URL}"
    }

}