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

my pipeline is giving me error of invalid bibucket-pipeline when i am checking it on validator

Siddhant Pandey September 19, 2023
image: python:3.10

pipelines:
  default:
    - step:
        name: Setup Virtual Environment
        script:
          - ./setup_venv.sh
        caches:
          - venv
    - step:
        name: Building
        script:
          - source venv/bin/activate  # Activate the virtual environment
          - pip install -r requirements.txt
    - step:
            name: Deploying the app
            deployment: Production
            script:
              - pipe: atlassian/rsync-deploy:0.9.0
                variables:
                  USER: $DEPLOY_USER
                  SERVER: $DEPLOY_SERVER
                  REMOTE_PATH: $REMOTE_PATH
                  LOCAL_PATH: '.'
              - ssh $DEPLOY_USER@$DEPLOY_SERVER "cd $REMOTE_PATH && pm2 restart 8"

1.png
i am getting this error can someone suggest me changes. i need it urgently

1 answer

1 accepted

2 votes
Answer accepted
Saxea _Flowie_
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 19, 2023

@Siddhant Pandey venv is not a pre-defined cache, so you need to define a custom cache. e.g.:

definitions:
  caches:
    venv: .venv # or your actual dir

You can see the documentation about custom caches here.

Suggest an answer

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

Atlassian Community Events