Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50780

Provide a way to "finish" a Declarative Pipeline successfully but not execute subsequent stages

      pipeline {
      agent any
      environment {

      // 
      buildUser = '';
      }

      tools {

      maven 'M3'
      }
      stages {

      stage('build user') {
      steps {
      wrap([$class: 'BuildUser']) {
      sh 'echo "${BUILD_USER}"'
      script {
      buildUser="${BUILD_USER}";

      //exit sucess does not work
      return;

      }
      }

      }
      }

      }

          [JENKINS-50780] Provide a way to "finish" a Declarative Pipeline successfully but not execute subsequent stages

            Unassigned Unassigned
            lee xian xjr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: