Reputation: 490
I'm trying to run tests on my software as it's about to be deployed via git to blueMix. Currently the pipeline is 'build stage' -> 'deploy stage', and now I'm trying to implement the 'test stage' in the middle of that process.
My test stage has a test job, and the Tester Type
is simple
. The command I have currently is:
#!/bin/bash
# invoke tests here
go test
, however the test stage fails and returns:
_build.sh: line 3: go: command not found
Build step 'Execute shell' marked build as failure
Evidently go isn't installed at the testing stage. Do I get the test server to install Go on each new git push to test it, or am I sorely mistaken?
Thanks!
Upvotes: 3
Views: 172
Reputation: 421
That's correct. There are only certain tools pre-installed in the enviroment that runs the jobs. You can find them here: https://hub.jazz.net/docs/deploy_var/#resources - Everything else would have to be installed each time the job is run.
Upvotes: 1