Bitbucket Pipelines
This walkthrough shows you how to use CloudTruth parameters with Bitbucket Pipelines.
Last updated
Was this helpful?
Was this helpful?
image: atlassian/default-image:2
pipelines:
default:
- step:
name: 'Install CloudTruth CLI:'
script:
- (curl -sL https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh || wget -qO- https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh) | sh
- cloudtruth -V
- cloudtruth --project MyFirstProject run -i none -- printenv - cloudtruth --project MyFirstProject parameter export shell --export > dotenv
# Passes environment variables between stages
artifacts:
- dotenv - step:
name: 'CloudTruth Variables Deployment to Staging'
deployment: staging
script:
- echo "Test CloudTruth Staging Step"
- source dotenv
- printenvimage: atlassian/default-image:2
pipelines:
default:
- step:
name: 'Install CloudTruth CLI:'
script:
- (curl -sL https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh || wget -qO- https://github.com/cloudtruth/cloudtruth-cli/releases/latest/download/install.sh) | sh
- cloudtruth -V
- cloudtruth --project MyFirstProject run -i none -- printenv
- cloudtruth --project MyFirstProject parameter export shell --export > dotenv
# Passes environment variables between stages
artifacts:
- dotenv
- step:
name: 'CloudTruth Variables Deployment to Staging'
deployment: staging
script:
- echo "Test CloudTruth Staging Step"
- source dotenv
- printenv