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

Declarative pipeline branch condition not working

    XMLWordPrintable

Details

    Description

      I am working with a simple pipeline, just to get familiar with the system.  My pipeline is defined in the attached Jenkinsfile.  I can't seem to get the "Deploy" stage to work.  I am using the simple "when { branch 'master' }".  However I keep getting: Stage 'Deploy' skipped due to when conditional

      NOTE: This is a single branch repo with only a master branch

      Jenkins Version: 2.51

      Pipeline Plugin Version: 2.5

       

      Running on AWS Linux image. I followed this setup guide: https://aws.amazon.com/getting-started/projects/setup-jenkins-build-server/

       

      Attachments

        Issue Links

          Activity

            People

              abayer Andrew Bayer
              d_smith Derek Smith
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: