Skip to navigation

runShell

Referenced In

Fields

FieldTypeDescriptionDefault
runShellone of:
- string
- object(Run shell command (detailed))
Required. Perform a native shell command.—

Examples

{
"runShell": "docker run hello-world"
}
{
"runShell": {
"command": "echo %USERNAME%",
"shell": "cmd"
}
}
{
"runShell": {
"command": "[[ \"ok\" == o* ]] && echo bashism",
"shell": "bash",
"stdio": "bashism"
}
}
{
"runShell": {
"command": "echo",
"args": [
"$USER"
]
}
}
{
"runShell": {
"command": "echo",
"args": [
"hello-world"
]
}
}
{
"runShell": {
"command": "docker run hello-world",
"timeout": 20000,
"exitCodes": [
0
],
"stdio": "Hello from Docker!"
}
}
{
"runShell": {
"command": "false",
"exitCodes": [
1
]
}
}
{
"runShell": {
"command": "echo",
"args": [
"setup"
],
"exitCodes": [
0
],
"stdio": "/.*?/"
}
}
{
"runShell": {
"command": "docker run hello-world",
"workingDirectory": ".",
"exitCodes": [
0
],
"stdio": "Hello from Docker!",
"path": "docker-output.txt",
"directory": "output",
"maxVariation": 0.1,
"overwrite": "aboveVariation"
}
}
{
"runShell": {
"command": "docker run -p 8080:80 nginx",
"background": {
"name": "web",
"waitUntil": {
"httpGet": "http://localhost:8080"
}
},
"timeout": 30000
}
}
{
"runShell": {
"command": "docker run -p 5432:5432 -e POSTGRES_PASSWORD=test postgres:16",
"background": {
"name": "db",
"waitUntil": {
"port": 5432,
"stdio": "/database system is ready to accept connections/"
}
},
"timeout": 60000
}
}