pipeline { agent any stages { stage('Build') { steps { echo 'Building..' withGradle { sh './gradlew build' } } } stage('Test') { steps { echo 'Testing...' withGradle { sh './gradlew test' } } } } }