aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
blob: ef408d8b2506795346cd6c302cac37967f24b017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pipeline {
    agent { dockerfile true }

    triggers {
        pollSCM('H * * * *')
    }

    stages {
        stage('Build') {
            steps {
                cmakeBuild installation: 'InSearchPath',
                    buildDir: 'build',
                    sourceDir: 'jlox',
                    steps: [[args: 'all']]

                archiveArtifacts artifacts: 'jlox/_build/com/craftinginterpreters/lox/Lox.jar',
                    fingerprint: false,
                    onlyIfSuccessful: true
            }
        }
    }
}