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

JiraContainer/Dockerefile trying to download Atlassian SDK from outdated location

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Summary
      When running the ATH test JiraPluginTest#jira_ticket_gets_updated_with_a_build_link, building the Jira docker image is failing. This is something which can easily be missed when running locally if you already have this docker image installed.

      Steps to recreate
      1. Run docker images and find any versions of jenkins/jira that are already present:

      ✔ ~/GitHub/acceptance-test-harness [master|…3⚑ 1] 
      12:03 $ docker images | grep jira
      jenkins/jira                               2b315e26c84f        3a631dd0ba9d        5 months ago        1.79GB
      

      2. Delete this image:

      ✔ ~/GitHub/acceptance-test-harness [master|…3⚑ 1] 
      12:04 $ docker rmi 3a631dd0ba9d
      Untagged: jenkins/jira:2b315e26c84f
      Deleted: sha256:3a631dd0ba9dfaedb2aa7f560cc24c524d05bbcccf8a32980b458a4bd7d259f1
      Deleted: sha256:1efe65d291277b830ceff6ef237087ac3d089ba9138ae39b2883d261a19f47f3
      Deleted: sha256:3f1536e3d864f7b1bae6ebe367034edb4f8c8830f89fa9cde645a7908a30429a
      Deleted: sha256:d4c5ce807f0a3da388be5f65f7fcb4ef65aaa694808be5bc78634d6c5f4dd4ee
      Deleted: sha256:17cdab6348b7a1c1766861186d4dd8a5fe15cd290a42f07496340b8eb52b8003
      Deleted: sha256:c841196c119f77e1232f3cdb69841b3187be58de9c46a124db666855e3c37744
      Deleted: sha256:fdbfa1bf565f026ae90c741304bc57b8e9034e393ad42f851a1ed62fd396b3f7
      Deleted: sha256:894bc84350a4c1d9f6e9b877f3b98a0a66d5b044ddc16c56882296e32798128d
      

      3. Run the test in your preferred way. It will try to re-download the image.

      4. The test will fail, because it can't find the image. Output:

      Building Docker image `docker build -t jenkins/jira:2b315e26c84f /tmp/Dockerfile8883778022481754579dir`: logfile is at target/diagnostics/jira_ticket_gets_updated_with_a_build_link(plugins.JiraPluginTest)/docker-JiraContainer.build.log
      master55986|Jun 21, 2018 4:09:13 PM jenkins.metrics.api.Metrics$HealthChecker execute
      master55986|WARNING: Some health checks are reporting as unhealthy: [backup : Last backup failed: null]
      [[ATTACHMENT|/tmp/dockerhome/acceptance-test-harness/target/diagnostics/jira_ticket_gets_updated_with_a_build_link(plugins.JiraPluginTest)/docker-JiraContainer.build.log]]
      [[ATTACHMENT|/tmp/dockerhome/acceptance-test-harness/target/diagnostics/jira_ticket_gets_updated_with_a_build_link(plugins.JiraPluginTest)/screenshot.png]]
      Cleaning up temporary JENKINS_HOME failed, retrying in 5 sec.
      --- Test failed: jira_ticket_gets_updated_with_a_build_link(plugins.JiraPluginTest): Failed to build image (100): 2b315e26c84f: 16:09:24
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 101.046 sec <<< FAILURE! - in plugins.JiraPluginTest
      jira_ticket_gets_updated_with_a_build_link(plugins.JiraPluginTest)  Time elapsed: 100.986 sec  <<< ERROR!
      java.lang.Error: Failed to build image (100): 2b315e26c84f
      	at org.jenkinsci.test.acceptance.docker.Docker.build(Docker.java:131)
      	at org.jenkinsci.test.acceptance.docker.Docker.build(Docker.java:156)
      	at org.jenkinsci.test.acceptance.docker.DockerContainerHolder.starter(DockerContainerHolder.java:65)
      	at org.jenkinsci.test.acceptance.docker.DockerContainerHolder.get(DockerContainerHolder.java:49)
      	at plugins.JiraPluginTest.jira_ticket_gets_updated_with_a_build_link(JiraPluginTest.java:48)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.jenkinsci.test.acceptance.junit.WithPlugins$RuleImpl$1.evaluate(WithPlugins.java:164)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1$2$1.evaluate(JenkinsAcceptanceTestRule.java:168)
      	at org.jenkinsci.test.acceptance.junit.FilterRule$1.evaluate(FilterRule.java:63)
      	at org.jenkinsci.test.acceptance.junit.WithDocker$RuleImpl$1.evaluate(WithDocker.java:50)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1.evaluate(JenkinsAcceptanceTestRule.java:58)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      
      
      Results :
      
      Tests in error: 
        JiraPluginTest.jira_ticket_gets_updated_with_a_build_link:48 ?  Failed to buil...
      
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:59 min
      [INFO] Finished at: 2018-06-21T16:09:24+00:00
      [INFO] Final Memory: 45M/606M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project acceptance-test-harness: There are test failures.
      

        Attachments

          Activity

          Hide
          kshultz Karl Shultz added a comment -

          I already have a fix. Working on a PR now.

          Show
          kshultz Karl Shultz added a comment - I already have a fix. Working on a PR now.
          Hide
          kshultz Karl Shultz added a comment -
          Show
          kshultz Karl Shultz added a comment - PR 440 up !
          Hide
          kshultz Karl Shultz added a comment -
          Show
          kshultz Karl Shultz added a comment - 440 is merged .

            People

            Assignee:
            kshultz Karl Shultz
            Reporter:
            kshultz Karl Shultz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: