I have a Concourse job that pulls a repo into a docker image and then executes a command on it, now I need to execute a script that comes form the docker image and after it is done execute a command inside the repo, something like this:
run:
  dir: my-repo-resource
  path: /get-git-context.sh && ./gradlew
  args:
    - build
get-git-context.sh is the script coming from my docker image and .gradlew is the standard gradlew inside my repo with the build param, I am getting the following error with this approach:
./gradlew: no such file or directory
Meaning the job cd'd into / when executing the first command, executing only one command works just fine. I've also tried adding two run sections:
run:
  path: /get-git-context.sh
run:
  dir: my-repo-resource
  path: ./gradlew
  args:
  - build
But only the second part is executed, what is the correct way to concat these two commands?