Last active
February 8, 2019 07:12
-
-
Save marcotc/457df30c6248c5ef180c1c69e78ceeeb to your computer and use it in GitHub Desktop.
CircleCI orb for Pacts - Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code is licensed from CircleCI to the user under the MIT license. See | |
# https://circleci.com/orbs/registry/licensing for details. | |
commands: | |
hello-triggerer: | |
parameters: | |
to: | |
default: ${CIRCLE_USERNAME} | |
type: string | |
steps: | |
- run: echo "Hello << parameters.to >>" | |
- run: | |
name: Publish pacts to Pact Broker | |
command: |- | |
echo "TRIGGERER: ${CIRCLE_USERNAME}" | |
echo "BUILD_NUMBER: ${CIRCLE_BUILD_NUM}" | |
echo "BUILD_URL: ${CIRCLE_BUILD_URL}" | |
echo "BRANCH: ${CIRCLE_BRANCH}" | |
echo "RUNNING JOB: ${CIRCLE_JOB}" | |
echo "JOB PARALLELISM: ${CIRCLE_NODE_TOTAL}" | |
echo "CIRCLE_REPOSITORY_URL: ${CIRCLE_REPOSITORY_URL}" | |
description: | | |
A simple "Hello, World!" orb | |
examples: | |
hello-build-with-workflow: | |
description: | | |
Invoke and run the hello-build orb. | |
usage: | |
orbs: | |
hello-build: circleci/[email protected] | |
version: 2.1 | |
workflows: | |
Hello Workflow: | |
jobs: | |
- hello-build/hello-build | |
executors: | |
default: | |
docker: | |
- image: bash:4.4.19 | |
jobs: | |
hello-build: | |
executor: default | |
parameters: | |
to: | |
default: ${CIRCLE_USERNAME} | |
type: string | |
steps: | |
- hello-triggerer: | |
to: <<parameters.to>> | |
version: 2.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment