Skip to content

Commit

Permalink
Added example yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
matt- committed Mar 1, 2024
1 parent d3ff9f6 commit 99bc775
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/bitbucket/bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
image: atlassian/default-image:3

pipelines:
pull-requests:
'**': # This will run for pull requests targeting any branch
- step:
name: "Pixee PR"
script:
- echo "Pixee PR run"
- |
echo "BITBUCKET_PR_DESTINATION_BRANCH is $BITBUCKET_PR_DESTINATION_BRANCH";
echo "BITBUCKET_BRANCH is $BITBUCKET_BRANCH";
if [[ ${#BITBUCKET_PR_DESTINATION_BRANCH} > 0 ]] && [[ $BITBUCKET_PR_DESTINATION_BRANCH != 'master' ]]; then
echo "This is not a PR on master so we're exiting." && exit 0;
fi
- pipe: docker://codemodder/pixee-ci-bitbucket:0.0.3

0 comments on commit 99bc775

Please sign in to comment.