Reputation: 381
I got a pipeline called Funcional_Test, I'm trying to run on that pipeline a script located in this path: /home/vagrant/VirtualMachines/software_test.sh
When I run the pipeline I got these errors:
Am I missing something? What can I do to fix the issue?
Upvotes: 1
Views: 3346
Reputation: 11
I am using GoCD Version 24.2.0. In it, I use the following structure to run Linux commands on a Linux agent, which is a pipeline created as code in YAML.
tasks:
- exec:
command: bash
arguments:
- -c
- |
cd "/var/lib/go-agent/pipelines/LinuxPipeline/backend" && npm i
run_if: passed
- exec:
command: bash
arguments:
- -c
- |
cd "/var/lib/go-agent/pipelines/LinuxPipeline/frontend" && npm i
run_if: passed
Upvotes: 1
Reputation: 73
Mention /bin/sh in Command (change it depends on the script type) Mention the script file in Arguments section in same line
Upvotes: 2