###PHPCI Plugin for Atlassian Bitbucket Server (Stash) build status integration
First of all - composer require transactpro/phpci-stash-build
There are two ways this plugin can work - tokens and login/password.
Add settings from below to your PHPCI config (/path/to/phpci/PHPCI/config.yml
):
#####Login / password style:
stash_build:
login: $STASH_USER
password: $STASH_PASSWORD
url: 'https://$STASH_URL:$PORT'
#####Token style: It's very similar to login/password style, but you have to install Token Authenticator to your Bitbucket Server (Stash), before you can continue.
Add to your PHPCI config (/path/to/phpci/PHPCI/config.yml
)
stash_build:
auth_user: $STASH_USER
auth_token: $STASH_TOKEN
url: 'https://$STASH_URL:$PORT'
And you are ready to go.
If installation was successful, then usage is easy as 1-2-3:
Example of phpci.yml
:
setup:
stash_build:
status: INPROGRESS
success:
stash_build:
status: SUCCESSFUL
failure:
stash_build:
status: FAILED
That's all folks!