Jenkins CI #2

Merged
cameron merged 14 commits from feature/jenkins-ci into master 2021-02-02 21:24:14 +00:00
Showing only changes of commit 55725e2b3c - Show all commits

25
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,25 @@
pipeline {
agent {
docker {
image 'rust:1.48'
args '-v "$PWD":/usr/src/image-api'
}
}
stages {
stage('build') {
steps {
echo $PWD
sh 'cargo build --release'
archiveArtifacts '**/target/release/**', fingerprint: true
}
}
stage('test') {
steps {
sh 'cargo test'
}
}
}
}