-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Bruno build job examples (Failing and Successful builds)
- Loading branch information
Showing
3 changed files
with
65 additions
and
8 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
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,55 @@ | ||
meta { | ||
name: Create Build Job (Test Succeed) | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: http://{{hostname}}/build | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"name": "Example Job", | ||
"metadata": { | ||
"GLOBAL": "test" | ||
}, | ||
"timestamp": "2021-01-01T00:00:00.000Z", | ||
"priority": 3, // optional, default 3 | ||
"steps": [ | ||
{ | ||
"id": 1, // mandatory to declare the order of execution | ||
"name": "Clone", | ||
"image": "ghcr.io/ls1intum/hades/hades-clone-container:latest", // mandatory | ||
"metadata": { | ||
"REPOSITORY_DIR": "/shared", | ||
"HADES_TEST_USERNAME": "{{user}}", | ||
"HADES_TEST_PASSWORD": "{{password}}", | ||
"HADES_TEST_URL": "{{test_repo}}", | ||
"HADES_TEST_PATH": "./example", | ||
"HADES_TEST_ORDER": "1", | ||
"HADES_ASSIGNMENT_USERNAME": "{{user}}", | ||
"HADES_ASSIGNMENT_PASSWORD": "{{password}}", | ||
"HADES_ASSIGNMENT_URL": "{{assignment_repo}}", | ||
"HADES_ASSIGNMENT_PATH": "./example/assignment", | ||
"HADES_ASSIGNMENT_ORDER": "2" | ||
} | ||
}, | ||
{ | ||
"id": 2, // mandatory to declare the order of execution | ||
"name": "Execute", | ||
"image": "ls1tum/artemis-maven-template:java17-18", // mandatory | ||
"script": "set +e && cd ./shared/example || exit 0 && ./gradlew --status || exit 0 && ./gradlew clean test || exit 0" | ||
} | ||
] | ||
} | ||
} | ||
|
||
vars:pre-request { | ||
user: "" | ||
password: "" | ||
test_repo: "https://github.com/Mtze/Artemis-Java-Test.git" | ||
assignment_repo: "https://github.com/Mtze/Artemis-Java-Solution.git" | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
vars { | ||
hostname: localhost:8080 | ||
hostname: localhost:8081 | ||
} |