Updated config.yml
This commit is contained in:
parent
8c7f2e459e
commit
1f5982f50d
1 changed files with 52 additions and 11 deletions
|
@ -1,10 +1,45 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
|
executors:
|
||||||
|
my-executor:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:16
|
||||||
|
working_directory: ~/Cider
|
||||||
|
|
||||||
orbs: # adds orbs to your configuration
|
orbs: # adds orbs to your configuration
|
||||||
jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible
|
jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible
|
||||||
|
|
||||||
# The jobs for this project
|
# The jobs for this project
|
||||||
jobs:
|
jobs:
|
||||||
|
flow:
|
||||||
|
executor: my-executor
|
||||||
|
steps:
|
||||||
|
- run: mkdir -p workspace
|
||||||
|
- run: echo "Hello, world!" > workspace/echo-output
|
||||||
|
|
||||||
|
# Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job.
|
||||||
|
- persist_to_workspace:
|
||||||
|
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
|
||||||
|
# taken to be the root directory of the workspace.
|
||||||
|
root: workspace
|
||||||
|
# Must be relative path from root
|
||||||
|
paths:
|
||||||
|
- echo-output
|
||||||
|
|
||||||
|
downstream:
|
||||||
|
executor: my-executor
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
# Must be absolute path or relative path from working_directory
|
||||||
|
at: /tmp/workspace
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
if [[ `cat /tmp/workspace/echo-output` == "Hello, world!" ]]; then
|
||||||
|
echo "It worked!";
|
||||||
|
else
|
||||||
|
echo "Nope!"; exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
prepare-build:
|
prepare-build:
|
||||||
working_directory: ~/Cider
|
working_directory: ~/Cider
|
||||||
docker:
|
docker:
|
||||||
|
@ -104,6 +139,12 @@ jobs:
|
||||||
|
|
||||||
# Orchestrate our job run sequence
|
# Orchestrate our job run sequence
|
||||||
workflows:
|
workflows:
|
||||||
|
btd:
|
||||||
|
jobs:
|
||||||
|
- flow
|
||||||
|
- downstream:
|
||||||
|
requires:
|
||||||
|
- flow
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- prepare-build
|
- prepare-build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue