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

Show "Run build steps in a container" from Kubernetes plugin

    Details

    • Similar Issues:

      Description

      Show "Run build steps in a container" from Kubernetes plugin

      stage('Run maven') {
        steps {
          sh 'set'
          sh 'test -f /usr/bin/mvn' // checking backwards compatibility
          sh "echo OUTSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}"
          container('maven') {
            sh 'echo INSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}'
            sh 'mvn -version'
          }
         }
      }

      Example: https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/declarative.groovy

        Attachments

          Activity

          Show
          edimarlnx Edimar Cardoso added a comment - PR https://github.com/jenkinsci/blueocean-plugin/pull/2009

            People

            • Assignee:
              Unassigned
              Reporter:
              edimarlnx Edimar Cardoso
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: