2021-10-10 22:38:58 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
2021-10-10 22:49:53 +02:00
|
|
|
stage('Configure') {
|
|
|
|
steps {
|
|
|
|
echo 'Configuring Cmake...'
|
2021-10-10 23:01:31 +02:00
|
|
|
sh '''
|
2021-10-10 23:03:58 +02:00
|
|
|
mkdir "build" &&
|
2021-10-10 23:01:31 +02:00
|
|
|
cd "build" &&
|
|
|
|
cmake "../stm-firmware"
|
|
|
|
'''
|
2021-10-10 22:54:47 +02:00
|
|
|
}
|
2021-10-10 22:49:53 +02:00
|
|
|
}
|
|
|
|
stage('Build') {
|
2021-10-10 22:38:58 +02:00
|
|
|
steps {
|
2021-10-10 23:12:22 +02:00
|
|
|
sh '''
|
|
|
|
cd "build" &&
|
|
|
|
make
|
|
|
|
'''
|
2021-10-10 22:38:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing..'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
2021-10-10 23:21:02 +02:00
|
|
|
when { tag "*" }
|
2021-10-10 22:38:58 +02:00
|
|
|
steps {
|
2021-10-10 23:18:13 +02:00
|
|
|
echo 'Deploying tag...'
|
2021-10-10 22:38:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|