This is docker image based on node:10
Following parameters are available
Name | Default Value | Notes |
---|---|---|
github_user | github user name where repo is located | |
github_repo | repo name | |
travis_token | travis access token | |
github_branch | master | github branch to trigger build on |
travis_url | https://api.travis-ci.org/repo/ | travis url to use to trigger jobs |
To trigger a job directly
docker run --rm aemdesign/travis-build-trigger \
start-branch-build \
--github_user=aem-design --github_repo=aem --travis_token=<TOKEN>
To trigger in Travis pipeline add the following to your stages
before_install:
# get current repo user name
- declare -a REPO_SLUG_ARRAY="(${TRAVIS_REPO_SLUG/\// })"
deploy:
# trigger rebuild in related repo
- provider: script
script: if [[ $TRAVIS_BRANCH == "master" ]]; then bash docker run --rm aemdesign/travis-build-trigger start-branch-build --github_user=${REPO_SLUG_ARRAY[0]} --github_repo=aem --github_branch=${TRAVIS_BRANCH} --travis_token=${TRAVIS_TOKEN}; fi