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

Build Environment Variables not available within Container Step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • kubernetes-plugin
    • None

      Currently, inside the build container steps, shell executions cannot access build-level parameters, such as SCM properties or Build information like BUILD_NUMBER.

      A workaround to allow this is to redeclare it:

       

      environment{

      BUILD_NUMBER = "${BUILD_NUMBER}

      }

       

      But this should be fixed to allow smoother use of the Kubernetes Plugin

            seakip18 Matthew Ludlum
            seakip18 Matthew Ludlum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: