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

Logs in pipeline stage view are not expanded after job renaming

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.7.2
      Pipeline 2.3
      Pipeline: Stage View Plugin 2.0
      Firefox 48.0
    • Similar Issues:

      Description

      Pipeline stage logs are expanded only if current job name is the same that was actual during the build. Otherwise logs won't be expanded
      Steps to reproduce:
      1) Build any pipeline job(stage logs are available)
      2) Rename this job(last build stage logs are not expanded)
      3) Rename job to it's original name(everything works fine again)

        Attachments

          Issue Links

            Activity

            Hide
            svanoort Sam Van Oort added a comment -

            Good catch – a complex side effect of the caching approach, unfortunately. We handle job renames but do not adjust their stored internal links (due to the HAL model used).

            Show
            svanoort Sam Van Oort added a comment - Good catch – a complex side effect of the caching approach, unfortunately. We handle job renames but do not adjust their stored internal links (due to the HAL model used).
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Sam Van Oort
            Path:
            rest-api/src/main/java/com/cloudbees/workflow/flownode/FlowNodeUtil.java
            rest-api/src/test/java/com/cloudbees/workflow/flownode/CachingTest.java
            http://jenkins-ci.org/commit/pipeline-stage-view-plugin/098e1154a04427a0ec680baa8ff7c8e996e1d707
            Log:
            Fix caching handling of job renames by directly invalidating, also rework cache invalidation for efficiency JENKINS-38159

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: rest-api/src/main/java/com/cloudbees/workflow/flownode/FlowNodeUtil.java rest-api/src/test/java/com/cloudbees/workflow/flownode/CachingTest.java http://jenkins-ci.org/commit/pipeline-stage-view-plugin/098e1154a04427a0ec680baa8ff7c8e996e1d707 Log: Fix caching handling of job renames by directly invalidating, also rework cache invalidation for efficiency JENKINS-38159
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Sam Van Oort
            Path:
            rest-api/src/main/java/com/cloudbees/workflow/flownode/FlowNodeUtil.java
            rest-api/src/test/java/com/cloudbees/workflow/flownode/CachingTest.java
            http://jenkins-ci.org/commit/pipeline-stage-view-plugin/6a302ebeea8d185483e14fc266dc2b53f491a4fc
            Log:
            Merge pull request #43 from jenkinsci/fix-caching-with-renames-JENKINS-38159

            Fix broken caching handling of job renames by purging cache entry JENKINS-38159

            Compare: https://github.com/jenkinsci/pipeline-stage-view-plugin/compare/4982e84eab49...6a302ebeea8d

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: rest-api/src/main/java/com/cloudbees/workflow/flownode/FlowNodeUtil.java rest-api/src/test/java/com/cloudbees/workflow/flownode/CachingTest.java http://jenkins-ci.org/commit/pipeline-stage-view-plugin/6a302ebeea8d185483e14fc266dc2b53f491a4fc Log: Merge pull request #43 from jenkinsci/fix-caching-with-renames- JENKINS-38159 Fix broken caching handling of job renames by purging cache entry JENKINS-38159 Compare: https://github.com/jenkinsci/pipeline-stage-view-plugin/compare/4982e84eab49...6a302ebeea8d
            Hide
            svanoort Sam Van Oort added a comment -

            Fix released with v2.9

            Show
            svanoort Sam Van Oort added a comment - Fix released with v2.9

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                ivanou Ivanou
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: