How get data from pileline log to use it in next step ?

Malyshko Alexander
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2023

Hello

 

I got Bitbucket pipeline with terraform that creates resources in AWS

After pipeline execution is done in pipeline log i see terraform outputs

 

rds_endpoint = [
{
"data_db" = "xxxx-data-db"
}
how i can get this data so i can use it in other pipeline steps ?
(like it possible to parse pipeline log ? or there is output value that i can parse for needed data ?)

1 answer

0 votes
Aron Gombas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2023

like it possible to parse pipeline log ?

In a "script" section, you can use all the common Unix commands. Therefore you should be able to parse that string in a regular step.

Malyshko Alexander
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2023

i know about "script" section but main question how i can get pipeline logs ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events