2021-11-23 10:31:01 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clippy') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'cargo clippy'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Rustfmt') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'cargo fmt'
|
|
|
|
}
|
|
|
|
}
|
2021-12-06 13:10:13 +01:00
|
|
|
stage('Check') {
|
2021-11-23 10:31:01 +01:00
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2021-12-06 13:10:13 +01:00
|
|
|
sh 'cargo check --target thumbv6m-none-eabi'
|
2021-11-23 10:31:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|