-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Ability to import a set of jobs from a remote directory
See `examples/advaned/import-remote` for more information.
- Loading branch information
Showing
5 changed files
with
84 additions
and
5 deletions.
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,9 @@ | ||
job "foo" { | ||
import = "git::ssh://[email protected]/mumoshu/variant2@examples/advanced/import/foo?ref=master" | ||
} | ||
|
||
job "test" { | ||
run "foo bar" { | ||
message = "message1" | ||
} | ||
} |
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,23 @@ | ||
// test for `job "test"` | ||
test "test" { | ||
case "case1" { | ||
exitstatus = 0 | ||
err = "" | ||
out = "message1" | ||
} | ||
|
||
run "test" { | ||
} | ||
|
||
assert "error" { | ||
condition = run.err == case.err | ||
} | ||
|
||
assert "out" { | ||
condition = (run.res.set && run.res.stdout == case.out) || !run.res.set | ||
} | ||
|
||
assert "exitstatus" { | ||
condition = (run.res.set && run.res.exitstatus == case.exitstatus) || !run.res.set | ||
} | ||
} |
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
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