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

Branch name disappear after plugin upgrade (>= 2.26)

    Details

    • Similar Issues:

      Description

      In my case, the IP address(ok.png) cannot be displayed after the upgrade(ng.png).
      I know this is a compatibility issue, after 2.26.
      I just hope that this problem can be solved in the future.

      Jenkinsfile

                  stage('Release') {
                      def progress = [:];
                      progress['___10.168.2.164 甲'] = {
                          node("nj-mes-man-prod")    { do_offline(1); do_deploy(); do_online(1) }
                      }
                      progress['______10.1.2.65 乙'] = {
                          node("nj-mes-man-2-pe")    { do_offline(2); do_deploy(); do_online(2) }
                      }
                      progress['_____10.1.2.164 丙'] = {
                          node("nj-mes-man-3-pe")    { do_offline(3); do_deploy(); do_online(3) }
                      }
                      progress['______10.1.2.69 丁'] = {
                          node("nj-mes-man-4-pe")    { do_offline(4); do_deploy(); do_online(4) }
                      }
      
                      parallel progress
                  }
      

      Diff

          % git di workflow-job-2.25 workflow-job-2.26-beta-1
          ...(略)
          -                    String prefix = getBranchName(node);
          -                    if (prefix != null) {
       @@ -                        logger = new LogLinePrefixOutputFilter(getListener().getLogger(), "[" + prefix + "] ");
          -                    } else {
          -                        logger = getListener().getLogger();
          -                    }
          ...(略)
      

        Attachments

        1. ng.png
          ng.png
          89 kB
        2. ok.png
          ok.png
          121 kB

          Issue Links

            Activity

            s5unty Vern Sun created issue -
            s5unty Vern Sun made changes -
            Field Original Value New Value
            Description In my case, the IP address(ok.png) cannot be displayed after the upgrade(ng.png).
            I know this is a compatibility issue, after 2.26.
            I just hope that this problem can be solved in the future.

            *Jenkinsfile*
            {code:java}
                        stage('Release') {
                            def progress = [:];
                            progress['___10.168.2.164 甲'] = {
                                node("nj-mes-man-prod") { do_offline(1); do_deploy(); do_online(1) }
                            }
                            progress['______10.1.2.65 乙'] = {
                                node("nj-mes-man-2-pe") { do_offline(2); do_deploy(); do_online(2) }
                            }
                            progress['_____10.1.2.164 丙'] = {
                                node("nj-mes-man-3-pe") { do_offline(3); do_deploy(); do_online(3) }
                            }
                            progress['______10.1.2.69 丁'] = {
                                node("nj-mes-man-4-pe") { do_offline(4); do_deploy(); do_online(4) }
                            }

                            parallel progress
                        }
            {code}

            *Diff*
            {code:diff}
                % git di workflow-job-2.25 workflow-job-2.26-beta-1
                ...(略)
                - String prefix = getBranchName(node);
                - if (prefix != null) {
             @@ - logger = new LogLinePrefixOutputFilter(getListener().getLogger(), "[" + prefix + "] ");
                - } else {
                - logger = getListener().getLogger();
                - }
                ...(略)
            {code}
            In my case, the IP address(ok.png) cannot be displayed after the upgrade(ng.png).
            I know this is a compatibility issue, after 2.26.
            I just hope that this problem can be solved in the future.

            *Jenkinsfile*
            {code:java}
                        stage('Release') {
                            def progress = [:];
                            progress['___10.168.2.164 甲'] = {
                                node("nj-mes-man-prod") { do_offline(1); do_deploy(); do_online(1) }
                            }
                            progress['______10.1.2.65 乙'] = {
                                node("nj-mes-man-2-pe") { do_offline(2); do_deploy(); do_online(2) }
                            }
                            progress['_____10.1.2.164 丙'] = {
                                node("nj-mes-man-3-pe") { do_offline(3); do_deploy(); do_online(3) }
                            }
                            progress['______10.1.2.69 丁'] = {
                                node("nj-mes-man-4-pe") { do_offline(4); do_deploy(); do_online(4) }
                            }

                            parallel progress
                        }
            {code}

            *Diff*
            {code}
                % git di workflow-job-2.25 workflow-job-2.26-beta-1
                ...(略)
                - String prefix = getBranchName(node);
                - if (prefix != null) {
             @@ - logger = new LogLinePrefixOutputFilter(getListener().getLogger(), "[" + prefix + "] ");
                - } else {
                - logger = getListener().getLogger();
                - }
                ...(略)
            {code}
            vivek Vivek Pandey made changes -
            Assignee Jesse Glick [ jglick ]
            vivek Vivek Pandey made changes -
            Labels pipeline plugin pipeline plugin triaged-2018-11
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-54304 [ JENKINS-54304 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                s5unty Vern Sun
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: