-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wiki): add an introduction to creating jobs (#45)
This adds a guide to the wiki that walks the reader through developing a Job with Open Job Description. The guide explains elements of the Job Template as it introduces concepts bit by bit, and shows how to use the CLI to verify and test their Jobs on their workstation. Signed-off-by: Daniel Neilson <[email protected]> Co-authored-by: Sean Wallitsch <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,950 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/.DS_Store |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# ---- | ||
# Demonstrates | ||
# ---- | ||
# This demonstrates a simple job template that can be used to inspect the path mapping | ||
# rules that are available to your jobs. | ||
# | ||
# To run: | ||
# PATH_MAPPING_RULES="{\"version\":\"pathmapping-1.0\", \"path_mapping_rules\": [{\"source_path_format\": \"POSIX\", \"source_path\": \"/mnt/source_directory\", \"destination_path\": \"/mnt/destination_directory\"}]}" | ||
# openjd run --step PrintRules path-mapping.yaml --path-mapping-rules "$PATH_MAPPING_RULES" | ||
# openjd run --step PrintRules path-mapping.yaml | ||
# | ||
# ---- | ||
# Requirements | ||
# ---- | ||
# - bash compatible shell | ||
# | ||
# ----- | ||
# Contributors to this template: | ||
# Daniel Neilson (https://github.com/ddneilson) | ||
|
||
name: ViewPathMappingFile | ||
specificationVersion: jobtemplate-2023-09 | ||
steps: | ||
- name: PrintRules | ||
script: | ||
actions: | ||
onRun: | ||
command: bash | ||
args: | ||
- "{{Task.File.Print}}" | ||
embeddedFiles: | ||
- name: Print | ||
type: TEXT | ||
data: | | ||
#!/bin/bash | ||
if test "{{Session.HasPathMappingRules}}" = "true"; then | ||
cat {{Session.PathMappingRulesFile}} | ||
else | ||
echo "No path mapping rules defined for this Session" | ||
fi |
This file contains 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
Oops, something went wrong.