[validation] docker: Fix manifest push wildcard 02/902/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 30 May 2019 13:34:28 +0000 (16:34 +0300)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 30 May 2019 13:36:48 +0000 (16:36 +0300)
The `make -C docker/*/. something` is expanded to
`make -C docker/firstsubdir/. docker/secondsubdir/. something`,
which leads to `make` interpreting the second directory as a
target name instead of running in that directory.
Switch to an explicit sh for loop to avoid this.

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: I7ae64f37b27079994c150b7d98af683d89b5c173

jjb/validation/validation-docker.yaml

index 1a8aaa9..ae3d0d4 100644 (file)
           settings-file: '{mvn-settings}'
       - shell: |
           #!/bin/bash -ex
-          make -C docker/*/. .push_manifest
+          for sd in docker/*/.; do make -C $sd .push_manifest; done
 
 # parameter macro
 - parameter: