adding build and test to jenkins
This commit is contained in:
parent
5c097d5b2c
commit
7bc5767208
@ -2,6 +2,18 @@ pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'cargo build'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'cargo test'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
when { branch 'master' }
|
||||
steps {
|
||||
|
Loading…
Reference in New Issue
Block a user