Maven lifecycle within jenkins pipeline - how to best separate responsibilities?
问题 When working with jenkins 2 (declarative) pipelines and maven I always have a problem with how to organize things within the pipeline to make it resusable and flexible. On the one side I would like to seperate the pipepline into logical stages like: pipeline { stages { stage('Clean') {} stage('Build') {} stage('Test') {} stage('Sanity check') {} stage('Documentation') {} stage('Deploy - Test') {} stage('Selenium tests') {} stage('Deploy - Production') {} stage('Deliver') {} } } On the other