definitions:- step:name: buildscript:- &build-test |apt-get update && apt-get install -y curl jqRESPONSE=$(curl -sSLO -w "%{http_code}" --header "Authorization: Bearer ${ACCESS_TOKEN_LOCAL}" "https://api.bitbucket.org/2.0/repositories/pipeline-tutorial/global-variables/src/master/global-variables.yml")echo ${RESPONSE}HTTP_STATUS=${RESPONSE:${#RESPONSE}-3}if [[ $HTTP_STATUS == 200 ]]; then echo "Download successful"; else echo "Download failed with HTTP status code: $HTTP_STATUS"; fisource <(cat global-variables.yml | jq -r 'to_entries[] | "export \(.key)=\(.value | @SH)"')pipelines:default:- step:name: Build and Testscript:- *build-test- step:name: Deployscript:- *build-test- echo $USERNAME- echo $EMAIL_SUBJECT
Hi @Satish Kumar
Try using the validator: https://bitbucket-pipelines.atlassian.io/validator
Hi @Satish Kumar and welcome to the community!
I believe the error occurs because you are missing the keyword steps in the definitions section, you can try adding it as follows:
definitions: steps: - step:
Make sure that the indentation is also correct. Each level should have at least 1 space indentation from the previous one, except for the levels under - step: (these should have at least 3 spaces)
Kind regards,Theodora
It looks like you're new here. Sign in or register to get started.