Add Jenkinsfile and supporting Dockerfile
This commit is contained in:
parent
b31528d593
commit
c965dd4033
2 changed files with 27 additions and 0 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get upgrade -y \
|
||||||
|
&& apt-get install -y build-essential cmake default-jdk-headless
|
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile.build'
|
||||||
|
label 'crafting-interpreters-build'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
cmakeBuild generator: 'Make',
|
||||||
|
buildDir: 'build',
|
||||||
|
sourceDir: 'src',
|
||||||
|
installation: 'InSearchPath'
|
||||||
|
archiveArtifacts artifacts: 'Lox.jar',
|
||||||
|
fingerprint: false,
|
||||||
|
onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue