Skip to content
PHPCI Plugin for Atlassian Bitbucket Server (Stash) build status integration
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

###PHPCI Plugin for Atlassian Bitbucket Server (Stash) build status integration

SensioLabsInsight

Latest Stable Version Total Downloads License

Install

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.

Usage

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!

You can’t perform that action at this time.