pass branch name to docker build #251
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -13,6 +13,9 @@ def build_docker(dist, release_dir, is_testing) {
|
||||
if (env.DOCKER_PREFIX) {
|
||||
args += " --build-arg DOCKER_PREFIX=${env.DOCKER_PREFIX}/"
|
||||
}
|
||||
if (env.BRANCH_NAME) {
|
||||
args += " --build-arg BRANCH=${env.BRANCH_NAME}"
|
||||
}
|
||||
args += " --build-arg IMAGE_FROM=${dist.docker_image}"
|
||||
args += " --build-arg LIBS_BUILD_NUMBER=${env.BUILD_NUMBER}"
|
||||
args += " --build-arg JOBS_COUNT=${env.JOBS_COUNT}"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}android
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -10,7 +11,7 @@ ENV ANDROID_TOOLCHAIN=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake
|
||||
ENV NDK_PLATFORM="android-21"
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_host
|
||||
RUN cmake -G Ninja -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG IMAGE_FROM
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}${IMAGE_FROM}
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -8,7 +9,7 @@ ARG support_gl=1
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_linux
|
||||
RUN cmake -G Ninja -DICU=0 -DLOCAL=0 -DQGLENGINE=${support_gl} -DQGLVIEW=${support_gl} -DHAS_GL=${support_gl} -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG IMAGE_FROM
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}${IMAGE_FROM}
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -8,7 +9,7 @@ ARG support_gl=1
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_linux
|
||||
RUN cmake -G Ninja -DICU=0 -DLOCAL=0 -DQGLENGINE=${support_gl} -DQGLVIEW=${support_gl} -DHAS_GL=${support_gl} -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG IMAGE_FROM
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}${IMAGE_FROM}
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -8,7 +9,7 @@ ARG support_gl=1
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_host
|
||||
RUN cmake -G Ninja -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG IMAGE_FROM
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}${IMAGE_FROM}
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -8,7 +9,7 @@ ARG support_gl=1
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_linux
|
||||
RUN cmake -G Ninja -DICU=0 -DLOCAL=0 -DQGLENGINE=${support_gl} -DQGLVIEW=${support_gl} -DHAS_GL=${support_gl} -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}osx
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -6,7 +7,7 @@ ARG JOBS_COUNT=4
|
||||
ENV PATH=/soft/osxcross/target/bin:/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_host
|
||||
RUN cmake -G Ninja -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}pi
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -6,7 +7,7 @@ ARG JOBS_COUNT=4
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_host
|
||||
RUN cmake -G Ninja -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}windows
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -6,7 +7,7 @@ ARG JOBS_COUNT=4
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_host
|
||||
RUN cmake -G Ninja -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ARG DOCKER_PREFIX=wapmobil/
|
||||
ARG BRANCH=release
|
||||
FROM ${DOCKER_PREFIX}windows32
|
||||
|
||||
ARG LIBS_BUILD_NUMBER=9999
|
||||
@@ -6,7 +7,7 @@ ARG JOBS_COUNT=4
|
||||
ENV PATH=/opt/cmake/bin:$PATH
|
||||
|
||||
WORKDIR /soft
|
||||
RUN git clone -b release --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
RUN git clone -b ${BRANCH} --single-branch --depth 1 --recursive https://git.shstk.ru/SHS/shstk.git
|
||||
|
||||
WORKDIR /soft/shstk_build_host
|
||||
RUN cmake -G Ninja -DICU=0 -DCROSSTOOLS=1 -DBUILD_NUMBER=${LIBS_BUILD_NUMBER} ../shstk \
|
||||
|
||||
Reference in New Issue
Block a user