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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,112
Community Members
 
Community Events
176
Community Groups

Bitbucket pipeline add description in version description

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

Atlassian Community Events