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

How to block the build button if there is empty mandatory filed.

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Version 2.462.1

      If the mandatory filed is empty, we should block the "Build" button or give the information to end user clearly.

      So far, we defined conditions in the pipeline stage as below. We could find the error after the building.

      But we hope to block the "Build" button and give the clear info to user quickly before starting the build.

      stage('preparation') {            
      steps {                
      script {                    
      if (test.isEmpty()) {                        
      error("No test available. Terminating build.")                    
      }

       

            Unassigned Unassigned
            ericli19 Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: