I have the below code in the jenkisn pipeline:
stage ("amd_distribution_input_transformation"){
steps{
script{
amd_distribution_input_transformation url: params.DOMAIN_DESCRIPTOR_URL, secret: params.CERDENITAL_ID
}
}
}
groovy code:
def call(Map parameters)
{
def CREDENITAL_ID = parameters.secret
def DOMAIN_DESCRIPTOR_URL = parameters.url
sh '''
python amd_distribution_input_transformation.py
'''
}
}
in the amd_distribution_input_transformation.py some code is running, and at the end, it returns JSON object named 'artifacts_list'
my question is, how can I access this object in my next stage in the pipeline:
stage ("create bundle"){
steps{
script{
amd_distribution_create_bundle credential_id: artifacts_list
}
}
}