36 lines
555 B
Groovy
36 lines
555 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Configure') {
|
|
steps {
|
|
echo 'Configuring Cmake...'
|
|
sh '''
|
|
mkdir "build" &&
|
|
cd "build" &&
|
|
cmake "../stm-firmware"
|
|
'''
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh '''
|
|
cd "build" &&
|
|
make
|
|
'''
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
echo 'Testing..'
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
when { tag="*" }
|
|
steps {
|
|
echo 'Deploying tag...'
|
|
}
|
|
}
|
|
}
|
|
}
|