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

ExportXMLWordPrintable

       

      parameters {
         string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
      }
      def label = "mypod-${UUID.randomUUID().toString()}"podTemplate(label: label, containers: [
         containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', ttyEnabled: true, command: 'cat'),
      ]) {
          node(label) {
              stage('Get a Maven project') {
                  git 'https://github.com/jenkinsci/kubernetes-plugin.git'
                  container('maven') {
                      stage('Build a Maven project') {
                           echo "Hello ${params.PERSON}"
                      }
                  }
              }
          }
        }

       
      output

            Assignee:
            Unassigned
            Reporter:
            runze xia
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: