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

Incompatible behavior of `@LocalData` since jenkins-test-harness 2.16

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: jenkins-test-harness
    • Labels:
      None
    • Environment:
      jenkins-test-harness >= 2.16
    • Similar Issues:

      Description

      Before 2.16, it allows following structure for files for `@LocalData`:

      • CopyArtifactTest.zip
      • CopyArtifactTest/someTest/config.xml

      CopyArtifact/ is ignored since there's no CopyArtifactTest/config.xml.
      Since 2.16, it doesn't ignore CopyArtifact/ and fail to use CopyArtifactTest.zip
      This bug is introduced in this PR: https://github.com/jenkinsci/jenkins-test-harness/pull/36

      This issue may make developers to upgrade jenkins-test-harness and plugin-pom.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest.zip
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/config.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/builds/2011-02-01_12-00-00/archive/foo.txt
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/builds/2011-02-01_12-00-00/build.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/config.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/builds/2011-02-01_13-00-00/archive/foo2.txt
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/builds/2011-02-01_13-00-00/build.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/config.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/users/joe/config.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/config.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/config.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/builds/2011-04-12_09-00-00/archive/foo.txt
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/builds/2011-04-12_09-00-00/build.xml
          src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/config.xml
          http://jenkins-ci.org/commit/copyartifact-plugin/39df7ccd9639625b3227830c7a09ac04ef9d0472
          Log:
          JENKINS-46700 Expand zip file for `LocalData` to avoid JENKINS-47075

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest.zip src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/config.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/builds/2011-02-01_12-00-00/archive/foo.txt src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/builds/2011-02-01_12-00-00/build.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/config.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/builds/2011-02-01_13-00-00/archive/foo2.txt src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/builds/2011-02-01_13-00-00/build.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/config.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/users/joe/config.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/config.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/config.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/builds/2011-04-12_09-00-00/archive/foo.txt src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/builds/2011-04-12_09-00-00/build.xml src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/config.xml http://jenkins-ci.org/commit/copyartifact-plugin/39df7ccd9639625b3227830c7a09ac04ef9d0472 Log: JENKINS-46700 Expand zip file for `LocalData` to avoid JENKINS-47075

            People

            • Assignee:
              olivergondza Oliver Gond┼ża
              Reporter:
              ikedam ikedam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: