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

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

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • jenkins-test-harness
    • None
    • jenkins-test-harness >= 2.16

      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.

          [JENKINS-47075] Incompatible behavior of `@LocalData` since jenkins-test-harness 2.16

          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

          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

          Jesse Glick added a comment -

          You can use one or the other style, not both.

          Jesse Glick added a comment - You can use one or the other style, not both.

            Unassigned Unassigned
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: