Build Environment Variables not available within Container Step

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Matthew Ludlum
            Reporter:
            Matthew Ludlum
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: