pipeline {
  agent { label 'linux' }
  stages {
    stage('Test') { steps { echo "testing $BRANCH_NAME" } }
    stage('Deploy') {
      when { branch 'main' }
      steps { echo 'deploying' }
    }
  }
}
