2022-08-05 00:44:41 +02:00
|
|
|
pipeline {
|
2022-08-16 10:23:39 +02:00
|
|
|
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'automation'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
2022-08-05 00:44:41 +02:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clippy') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo clippy'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Rustfmt') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo fmt'
|
|
|
|
}
|
|
|
|
}
|
2022-08-16 10:20:00 +02:00
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2022-08-16 10:23:39 +02:00
|
|
|
sh 'cargo test'
|
2022-08-16 10:20:00 +02:00
|
|
|
}
|
|
|
|
}
|
2022-08-05 00:44:41 +02:00
|
|
|
stage('Check') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo check'
|
|
|
|
}
|
|
|
|
}
|
2022-08-16 10:28:06 +02:00
|
|
|
stage('Check Cross') {
|
|
|
|
steps {
|
2022-08-16 10:38:06 +02:00
|
|
|
sh 'cargo check --target thumbv7em-none-eabihf --no-default-features'
|
2022-08-16 10:28:06 +02:00
|
|
|
}
|
|
|
|
}
|
2022-08-05 00:44:41 +02:00
|
|
|
}
|
|
|
|
}
|