Closed agardnerIT closed 1 year ago
No, it probably doesn't... tried to run a simple echo
followed by k6 run
command but it failed
it took the whole command as arguments to echo
apiVersion: v2
actions:
- name: "Run k6"
events:
- name: "sh.keptn.event.test.triggered"
tasks:
- name: "Run k6 with Keptn"
files:
- /files
image: "loadimpact/k6"
# cmd: ["sh"]
# args: ["/keptn/files/execution.sh", "&&", "ls" ]
cmd: ["echo"]
args: ["jainam-log", "&&", "k6", "run", "--duration", "30s", "--vus", "10", "/keptn/files/k6_test.js"]
Tried using a shell script for running multiple commands
I got the following output from JES
This is the config.yaml
file of that service
The shell script failed, but JES didn't give any error.
The shell script didn't fail. All commands ran and it exited correctly. One command in the shell script failed.
By default JES mounts as a read only filesystem for most directories (for security). Try writing into the /keptn
folder instead.
okay, i will test it out 👍
I think this can be closed. What do you think jainammm?
Summary:
0
exit code, the Keptn task will be considered as a pass
. If the JES job exits with a non-zero
exit code, this is interpreted as a fail.yes, this summary sums up this exercise 💯 thanks!
@ppcano mentioned using the JES to first build a k6 binary with extensions using
xk6
then running that binary.Does the Keptn Job Executor Service support running something like this: