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

kubernetes-pipeline-plugin: ERROR: Labels must follow required specs

XMLWordPrintable

      Running into following issue:
      [Pipeline] {[Pipeline] stage[Pipeline]

      { (1)[Pipeline] podTemplate[Pipeline] // podTemplate[Pipeline] }

      [Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: Labels must follow required specs -
      https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
      : [container:null]test_1_27
      Finished: FAILURE
       

      The root cause is from https://github.com/jenkinsci/kubernetes-pipeline-plugin/blob/master/kubernetes-steps/src/main/resources/io/fabric8/kubernetes/pipeline/Kubernetes.groovy#L371

       

      It passed `container: name` to inside function. The label does not follow the syntax per log. It blocks the usage of this plugin.

       

            iocanel Ioannis Canellos
            hai_lh84 Hai Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: