Skip to content

Commit dd9554c

Browse files
authored
fix: Add metadata example (screwdriver-cd-test#8)
Add metadata example to the quickstart
1 parent 56f2ef8 commit dd9554c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

screwdriver.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
# the same job (as shown below).
3535
- export: export GREETING="Hello, world!"
3636
- hello: echo $GREETING
37+
# Metadata is a structured key/value storage of relevant information about a build.
38+
# Metadata will be shared with subsequent builds in the same workflow.
39+
# You can set any key using the command "meta set <key> <value>".
40+
- set-metadata: meta set example.coverage 99.95
3741
# We define another Job called "second_job". In this Job, we intend on running
3842
# a different set of commands.
3943
second_job:
@@ -43,6 +47,8 @@ jobs:
4347
# actions. This is incredibly useful when you need to perform a multi-line
4448
# command.
4549
- make_target: make greetings
50+
# You can get metadata that was set using the command "meta get <key>".
51+
- get-metadata: meta get example
4652
# The "run_arbitrary_script" executes a script. This is an alternative to
4753
# a Makefile target where you want to run a series of commands related to
4854
# this step

0 commit comments

Comments
 (0)