• 0
    • 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.

      In the Bamboo web UI a plans execution log can is retrieved by accessing something like the following URI:
      https://<My Bamboo Host>/download/<PROJECT KEY>-<PLAN KEY>-BP/build_logs/NB

      I need an automated way to access those logs.

            [BAM-21161] REST API endpoint to download log from build result

            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            SET Analytics Bot made changes -
            UIS Original: 0 New: 1
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0

            Roman Stoffel added a comment - - edited

            We where using the /download/<PROJECT KEY>-<PLAN KEY>-BP/build_logs/NB API for a while, and it did what we wanted. However, this API doesn't work with a 'Authorization: Bearer' token =(.

            Now we switched to the /rest/api/1.0/result/PLAN-JOB-80?expand=logEntries&max-results={number-of-entries} API. However, this API is ridiculously slow. It takes like 2-3 seconds for a 100'000 lines log. Longer longs even can bring Bamboo down on its knees.

            Plus the API generates way lager data transfer, as each line it packaged in its own JSON entry. We really wished to just get the logs. All the JSON around it is just overhead on both sides.

            Roman Stoffel added a comment - - edited We where using the /download/<PROJECT KEY>-<PLAN KEY>-BP/build_logs/NB API for a while, and it did what we wanted. However, this API doesn't work with a 'Authorization: Bearer' token =(. Now we switched to the /rest/api/1.0/result/PLAN-JOB-80?expand=logEntries&max-results={number-of-entries} API. However, this API is ridiculously slow. It takes like 2-3 seconds for a 100'000 lines log. Longer longs even can bring Bamboo down on its knees. Plus the API generates way lager data transfer, as each line it packaged in its own JSON entry. We really wished to just get the logs. All the JSON around it is just overhead on both sides.
            SET Analytics Bot made changes -
            UIS Original: 0 New: 1

            Michael added a comment - Solution: https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-you-get-the-build-log-using-REST-API/qaq-p/485212

            Michael added a comment -

            Hello! I am interested in this) How did you solve the problem?

            Michael added a comment - Hello! I am interested in this) How did you solve the problem?
            Sharad Pattanshetti made changes -
            Link New: This issue is cloned from BAM-18656 [ BAM-18656 ]
            Sharad Pattanshetti created issue -

              Unassigned Unassigned
              efbec7a23d1f Sharad Pattanshetti
              Votes:
              9 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: