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...' } } } }