You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
620 B

  1. pipeline {
  2. agent any
  3. tools {
  4. maven 'maven-3.6.0'
  5. }
  6. stages {
  7. stage("SCM checkout"){
  8. steps{
  9. echo "BRANCH_NAME: ${env.BRANCH_NAME}"
  10. checkout scm
  11. }
  12. }
  13. stage("branch processing"){
  14. steps{
  15. echo "BRANCH_NAME: ${env.BRANCH_NAME}"
  16. script {
  17. if (env.BRANCH_NAME.startsWith("feature")) {
  18. echo "rebase ${env.BRANCH_NAME} on develop"
  19. }
  20. }
  21. }
  22. }
  23. stage("maven build"){
  24. steps{
  25. sh '''mvn clean install'''
  26. }
  27. }
  28. }
  29. }