[JIRA] (JENKINS-58558) Show "Run build steps in a container" from Kubernetes plugin

6 views
Skip to first unread message

edimarlnx@gmail.com (JIRA)

unread,
Jul 18, 2019, 12:28:02 PM7/18/19
to jenkinsc...@googlegroups.com
Edimar Cardoso updated an issue
 
Jenkins / New Feature JENKINS-58558
Show "Run build steps in a container" from Kubernetes plugin
Change By: Edimar Cardoso
Attachment: Screenshot from 2019-07-18 12-12-31.png
Attachment: Screenshot from 2019-07-18 12-12-16.png
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

edimarlnx@gmail.com (JIRA)

unread,
Jul 18, 2019, 12:28:02 PM7/18/19
to jenkinsc...@googlegroups.com
Edimar Cardoso created an issue
Issue Type: New Feature New Feature
Assignee: Unassigned
Attachments: Screenshot from 2019-07-18 12-12-16.png, Screenshot from 2019-07-18 12-12-31.png
Components: blueocean-pipeline-editor-plugin
Created: 2019-07-18 16:27
Priority: Minor Minor
Reporter: Edimar Cardoso

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

edimarlnx@gmail.com (JIRA)

unread,
Jul 18, 2019, 12:32:03 PM7/18/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages