
This patch allows to pass directory with source code of projects to conteiner during build. This is useful when it is not possible to clone project in anonymous mode. Change-Id: Id157ad614b790a87d8c8910a438a29887f9fc46e
12 lines
206 B
Bash
Executable File
12 lines
206 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
if [[ ! -d /tmp/${PROJECT} ]]; then
|
|
git clone ${PROJECT_REPO} /tmp/${PROJECT}
|
|
pushd /tmp/${PROJECT}
|
|
git fetch ${PROJECT_REPO} ${PROJECT_REF}
|
|
git checkout FETCH_HEAD
|
|
popd
|
|
fi
|