Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipeline add description in version description

Sudharshan Nair
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!
July 1, 2022
I am trying to add description to newly created version only, but no luck ;-( I can add description to lambda and alias, but not to newly created version. You can refer below screenshot where I want my description from pipeline. 
lambda version.PNG
- step:
    name: Build and publish version
    oidc: true
    script:
      - apt-get update && apt-get install -y zip jq
      - for dir in ${LAMBDA_FUNCTION_NAME}; do
      - echo $dir
      - cd ./$dir && npm install --production
      - zip -r code.zip *
      # lambda config
      # - export ENVIRONMENT="dev"
      # Create lambda configuration file with environment variables
      - export LAMBDA_CONFIG="{}"
      - echo $LAMBDA_CONFIG > ./lambdaConfig.json
      - pipe: atlassian/aws-lambda-deploy:1.5.0
        variables:
          AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
          AWS_OIDC_ROLE_ARN: '############################'
          FUNCTION_NAME:  $dir
          COMMAND: 'update'
          ZIP_FILE: 'code.zip'
          FUNCTION_CONFIGURATION: "lambdaConfig.json"
          WAIT: "true"
          #PUBLISH_FLAG: "false"
      - BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes"
     # - if [ ${ALIAS} == "" ]; then  echo "Setup successful"; else
      - VERSION=$(jq  --raw-output '.Version' $BITBUCKET_PIPE_SHARED_STORAGE_DIR/aws-lambda-deploy-env)
      - cd .. && echo ${VERSION} > ./version.txt
      - echo "Published version:${VERSION}"
      - cat version.txt
      - VERSION=$(cat ./version.txt)
      #- fi; 
      - pipe: atlassian/aws-lambda-deploy:1.5.0
        variables:
          AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
          AWS_OIDC_ROLE_ARN: '########################'
          FUNCTION_NAME:  $dir
          COMMAND: 'alias'              
          ALIAS: ${ALIAS}
          VERSION: '${VERSION}'
          DESCRIPTION: ${DESCRIPTION}
      - done

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events