Compare commits
10 Commits
2c2e4c1484
...
jenkins
| Author | SHA1 | Date | |
|---|---|---|---|
| 4efa5ae797 | |||
| 5e90cd39fa | |||
| 015028bde2 | |||
| 4e6e5db2c3 | |||
| a2bcd37800 | |||
| ed936cf9f9 | |||
| e595e398d4 | |||
| 86446e1b22 | |||
| b26233d5e3 | |||
| 0ab13edced |
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -2,9 +2,22 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Configure') {
|
||||||
|
steps {
|
||||||
|
echo 'Configuring Cmake...'
|
||||||
|
sh '''
|
||||||
|
mkdir "build" &&
|
||||||
|
cd "build" &&
|
||||||
|
cmake "../stm-firmware"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Building..'
|
sh '''
|
||||||
|
cd "build" &&
|
||||||
|
make
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
@@ -13,8 +26,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
when { tag "*" }
|
||||||
steps {
|
steps {
|
||||||
echo 'Deploying....'
|
echo 'Deploying tag...'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user