Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21768

Checking the latest artifacts of a Specs published plan using URL "${BAMBOO_BASE_URL}/browse/${PLAN_KEY}/latest/artifact/shared/" throws an error "Page not found" when the latest build result is "Specs configuration updated".

    XMLWordPrintable

Details

    Description

      Issue Summary

      Build results generated by Repository Stored Specs (RSS) should not be considered while checking the latest artifacts using URL'S

      • "${BAMBOO_BASE_URL}/browse/${PLAN_KEY}/latest/artifact/shared/"
      • "{$BAMBOO_BASE_URL}/artifact/${PLAN_KEY}/shared/build-latestSuccessful"

      Steps to Reproduce

      1. Publish a plan with artifact creation under a job using Java specs. Below is the sample Java spec code.
         Plan createPlan() {
                return new Plan(project(), "My Plan24", "PLANSPECS")
                        .description("Plan created from BambooJava Specs")
                        .stages( new Stage("stage1")
                                .jobs(new Job("Run", "RUN")
                                    .artifacts(new Artifact()
                                        .name("art1")
                                        .copyPattern("*.txt")
                                        .shared(true)
                                        .required(true))
                                    .tasks(new ScriptTask()
                                        .inlineBody("echo \"artifact created\" > web.txt"))));
        
      1. Once the Specs code is successfully imported, the plan is created in Bamboo. Run the build of this plan multiple times (just to have multiple build results) from Bamboo UI.
      2. Check the latest artifact of the plan using the below URL, which will show the latest build artifact.
         "${BAMBOO_BASE_URL}/browse/${PLAN_KEY}/latest/artifact/shared/"
      3. Update the plan's spec configuration now and publish the changes to Bamboo.
      4. Now, when we check the latest artifact using the same URL mentioned above, it will throw an error "Page not found" because the latest build in the build results summary is for "Specs configuration updated".

      Expected Results

      • Bamboo should show the latest artifacts from plan builds and should not consider the "Specs configuration updated" builds.

      Actual Results

      • Bamboo is including the "Specs configuration updated" builds while checking the latest artifacts and throws an error "Page not found".
      • Same issue observed with URL "{$BAMBOO_BASE_URL}/artifact/${PLAN_KEY}/shared/build-latestSuccessful"

      Workaround

      No workaround as of now.

      Attachments

        1. build_result_summary.png
          build_result_summary.png
          237 kB
        2. error_page.png
          error_page.png
          76 kB
        3. error2.png
          error2.png
          69 kB
        4. latest_artifact.png
          latest_artifact.png
          37 kB

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              dac6e1c9d0b2 Jyothi Charupalli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: