-
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.
ref(15): Test a basic wild pipeline on Jenkins (#16)
Non functional tests - will deal with that later
- Loading branch information
1 parent
6f6b222
commit df09f0f
Showing
47 changed files
with
4,436 additions
and
810 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# shellcheck disable=SC2148 disable=SC2034 | ||
CODECOV_TOKEN="<YOUR_CODECOV_TOKEN>" | ||
GITHUB_TOKEN="<YOUR_GITHUB_TOKEN>" |
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,6 @@ | ||
library identifier: "wild@15-test-wild-on-jenkins", retriever: modernSCM( | ||
[$class: 'GitSCMSource', | ||
remote: 'https://github.com/scalastic/wild.git', | ||
credentialsId: 'wild-github-token']) _ | ||
|
||
wildPipeline() |
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
container: | ||
- name: "bash" | ||
image: "redhat/ubi9" | ||
command: "cat" | ||
tty: true | ||
resources: | ||
cpu: | ||
limit: "500m" | ||
request: "100m" | ||
memory: | ||
limit: "512Mi" | ||
request: "128Mi" | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsNonRoot: true | ||
- name: "maven" | ||
image: "maven:3" | ||
command: "cat" | ||
tty: true | ||
resources: | ||
cpu: | ||
limit: "1" | ||
request: "500m" | ||
memory: | ||
limit: "1Gi" | ||
request: "512Mi" | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsNonRoot: true |
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,17 @@ | ||
metadata: | ||
labels: | ||
pipeline: jenkinsfile | ||
spec: | ||
containers: | ||
- name: 'wild' | ||
image: scalastic/wild | ||
command: | ||
- cat | ||
tty: true | ||
resources: | ||
requests: | ||
cpu: "0.1" | ||
memory: "128Mi" | ||
limits: | ||
cpu: "0.5" | ||
memory: "512Mi" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,39 +1,13 @@ | ||
{ | ||
"id": "workflow123", | ||
"name": "My Workflow", | ||
"workflow": [ | ||
"id": "wild-test-001", | ||
"name": "Sample Workflow for Testing", | ||
"version": "1.0.0", | ||
"actions": [ | ||
{ | ||
"id": "action1", | ||
"name": "Action 1", | ||
"condition": true, | ||
"action": "do_something", | ||
"pre_action": { | ||
"id": "pre-action1", | ||
"name": "Pre-Action", | ||
"action": "pre_do_something" | ||
}, | ||
"post_action": { | ||
"id": "post-action1", | ||
"name": "Post-Action", | ||
"action": "post_do_something" | ||
}, | ||
"resume": false, | ||
"log": true, | ||
"log_level": "info" | ||
}, | ||
{ | ||
"id": "action2", | ||
"name": "Action 2", | ||
"condition": true, | ||
"action": "do_something_else", | ||
"log": true | ||
}, | ||
{ | ||
"id": "action3", | ||
"name": "Action 3", | ||
"condition": false, | ||
"action": "do_something_else", | ||
"log": false | ||
"container": "bash", | ||
"script": "test/action/bash-version.sh" | ||
} | ||
] | ||
} |
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,19 @@ | ||
{ | ||
"id": "wild-test-001", | ||
"name": "Sample Workflow for Testing", | ||
"version": "1.0.0", | ||
"actions": [ | ||
{ | ||
"id": "action1", | ||
"name": "Action 1", | ||
"container": "bash", | ||
"script": "test/action/bash-version.sh" | ||
}, | ||
{ | ||
"id": "action2", | ||
"name": "Action 2", | ||
"container": "maven", | ||
"script": "test/action/maven-version.sh" | ||
} | ||
] | ||
} |
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,3 @@ | ||
FROM scratch | ||
ADD bash | ||
ENTRYPOINT ['/bash'] |
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,7 @@ | ||
FROM bash:latest | ||
|
||
LABEL Author="wild by scalastic" | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache curl jq \ | ||
&& rm -rf /var/cache/apk/* |
6 changes: 3 additions & 3 deletions
6
docker/basic/alpine/Dockerfile → docker/basic/alpine/Dockerfile.03
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM redhat/ubi9:9.2 | ||
|
||
LABEL Author="WILD by Scalastic" | ||
|
||
RUN yum install jq -y |
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
Oops, something went wrong.