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

Link to artifacts from the latest successful build

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I'd like to use Bamboo for the purpose of building and distributing 'nightly builds'. How do I link, not to a specific build number, but to the latest successful build? Hudson for example does this easily.

            [BAM-2357] Link to artifacts from the latest successful build

            Martin Hollerweger added a comment - - edited

            This worked for me:

            https://bamboo.yourcompany.com/browse/{PROJECTKEY}-{PLANKEY}/latest/artifact/shared/{ArtifactNameInBamboo}/

            Martin Hollerweger added a comment - - edited This worked for me: https: //bamboo.yourcompany.com/browse/{PROJECTKEY}-{PLANKEY}/latest/artifact/shared/{ArtifactNameInBamboo}/

            This still works as of Bamboo 6.3, the exact format depends if the artifact is set to shared or not. 

            Normal format:

            https://bamboo.company.com/artifact/PLANKEY/JOBKEY/build-latest/PLAN/artifactfilename
            

            Shared artifact:

            https://bamboo.company.com/artifact/PLANKEY/shared/build-latest/PLAN/artifactfilename
            

            Kelly Schoenhofen added a comment - This still works as of Bamboo 6.3, the exact format depends if the artifact is set to shared or not.  Normal format: https: //bamboo.company.com/artifact/PLANKEY/JOBKEY/build-latest/PLAN/artifactfilename Shared artifact: https: //bamboo.company.com/artifact/PLANKEY/shared/build-latest/PLAN/artifactfilename

            this doesn't seem to work anymore

            Nick Hilton added a comment - this doesn't seem to work anymore

            In Bamboo 5.7.2 this url format worked for me:

            http://<bamboo>/artifact/<plan-key>/shared/build-latestSuccessful/<artifact-path>

            e.g. http://bamboo/artifact/ASC-CORE/shared/build-latestSuccessful/IntegrationTest/Artifacts/IntegrationTest/Doc/index.html

            An easy way to generate that url is go to the build artifact page, and view an artifact. Then in the url replace build-123 with build-latest or build-latestSuccessful.

            Carolyn Van Slyck added a comment - In Bamboo 5.7.2 this url format worked for me: http://<bamboo>/artifact/<plan-key>/shared/build-latestSuccessful/<artifact-path> e.g. http://bamboo/artifact/ASC-CORE/shared/build-latestSuccessful/IntegrationTest/Artifacts/IntegrationTest/Doc/index.html An easy way to generate that url is go to the build artifact page, and view an artifact. Then in the url replace build-123 with build-latest or build-latestSuccessful.

            Hi donnib,

            This worked for me:
            http://<bambooServer:port>/browse/<projectKey>-<planKey>/latest/artifact/<jobKey>/<artifactName>/<generatedArtifactName>

            <artifactName>: The name that i've set in artifact definitions page. For example: [ZIP]
            <generatedArtifactName>:The real artifact name. For example: [myArtifact.zip]

            And in this way:

            http://<bambooServer:port>/browse/<projectKey>-<planKey>/latest/artifact/<jobKey>/ZIP/myArtifact.zip

            I hope this can be useful for you

            Regards,
            Antonio

            Antonio Garea added a comment - Hi donnib, This worked for me: http://<bambooServer:port>/browse/<projectKey>-<planKey>/latest/artifact/<jobKey>/<artifactName>/<generatedArtifactName> <artifactName>: The name that i've set in artifact definitions page. For example: [ZIP] <generatedArtifactName>:The real artifact name. For example: [myArtifact.zip] And in this way: http://<bambooServer:port>/browse/<projectKey>-<planKey>/latest/artifact/<jobKey>/ZIP/myArtifact.zip I hope this can be useful for you Regards, Antonio

            @Mark I cannot get http://bamboo/browse/<plankey>/latestSuccessful/artifact/<jobKey>/<artifactname> to work, i don't see this feature documented anywhere besides here :

            I tried http://appbamboo/browse/ENV-ENVDBUILD/latestSuccessful/artifact/JOB1

            where ENV is the projectkey, ENVDBUILD is the plankey and JOB1 is the jobkey

            What could be the problem ? What i want to get is latest successful (job not plan) JOB artifact.

            JIRA Autobot added a comment - @Mark I cannot get http://bamboo/browse/ <plankey>/latestSuccessful/artifact/<jobKey>/<artifactname> to work, i don't see this feature documented anywhere besides here : I tried http://appbamboo/browse/ENV-ENVDBUILD/latestSuccessful/artifact/JOB1 where ENV is the projectkey, ENVDBUILD is the plankey and JOB1 is the jobkey What could be the problem ? What i want to get is latest successful (job not plan) JOB artifact.

            MarkC added a comment -

            You can access the artifacts for a specific Job using

            http://bamboo/browse/<plankey>/latestSuccessful/artifact/<jobKey>/<artifactname>
            

            MarkC added a comment - You can access the artifacts for a specific Job using http: //bamboo/browse/<plankey>/latestSuccessful/artifact/<jobKey>/<artifactname>

            +1 This feature would be very nice when trying to automatically download the latest (successful) build

            Bulkan Evcimen added a comment - +1 This feature would be very nice when trying to automatically download the latest (successful) build

            Shannon: Maybe I didn't understand your problem correctly, but I was able to link to a html file in a test reports artifact which is not at the top level:
            http://bamboo.ci.codehaus.org/download/APPINFO-MASTER/artifacts/build-latest/Test-reports/html/index.html

            Marcin Zajaczkowski added a comment - Shannon: Maybe I didn't understand your problem correctly, but I was able to link to a html file in a test reports artifact which is not at the top level: http://bamboo.ci.codehaus.org/download/APPINFO-MASTER/artifacts/build-latest/Test-reports/html/index.html

            The latest link seems to work ok for single artifacts (ignoring the requirement to link to successful builds). But for something like javadocs, the redirection doesn't work when you deep link to a file not at the top level.

            Shannon Krebs added a comment - The latest link seems to work ok for single artifacts (ignoring the requirement to link to successful builds). But for something like javadocs, the redirection doesn't work when you deep link to a file not at the top level.

              pbruski Przemek Bruski
              1d31a2de2270 Aristedes Maniatis
              Votes:
              12 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: