diff --git a/build-darkice.jenkins b/build-darkice.jenkins index 2ad630c..2bfae20 100644 --- a/build-darkice.jenkins +++ b/build-darkice.jenkins @@ -8,6 +8,8 @@ def dockerFile def label = "kubernetes-${UUID.randomUUID().toString()}" def templateName = "pipeline-worker" +def darkiceVersion = "1.5" + pipeline { agent { kubernetes { @@ -25,13 +27,12 @@ pipeline { script { workspace = pwd() dockerFile = """FROM ${repository}/dockerhub/library/debian:latest as builder -ARG DARKICE_VERSION="1.5" RUN apt-get update \\ && apt-get --no-install-recommends --yes install ca-certificates curl build-essential tar pkg-config alsa-utils lame libmp3lame-dev libpulse-dev libjack-jackd2-dev libaudio-dev libasound2-dev libshout3-dev libmp3lame-dev \\ && mkdir /tmp/build \\ - && curl -L https://github.com/rafael2k/darkice/releases/download/v\${DARKICE_VERSION}/darkice-\${DARKICE_VERSION}.tar.gz | tar -z -x -f - -C /tmp/build \\ - && cd /tmp/build/darkice-\${DARKICE_VERSION}/ \\ + && curl -L https://github.com/rafael2k/darkice/releases/download/v${darkiceVersion}/darkice-${darkiceVersion}.tar.gz | tar -z -x -f - -C /tmp/build \\ + && cd /tmp/build/darkice-${darkiceVersion}/ \\ && ./configure CXXFLAGS="-std=c++11" --with-pulseaudio --with-lame --with-alsa --with-jack \\ && make @@ -40,7 +41,7 @@ FROM ${repository}/dockerhub/library/debian:latest LABEL org.opencontainers.image.authors="The_Spider " LABEL org.opencontainers.image.title="darkice" -COPY --from=builder /tmp/build/darkice-\${DARKICE_VERSION}/src/darkice /usr/bin/local/ +COPY --from=builder /tmp/build/darkice-${darkiceVersion}/src/darkice /usr/bin/local/ ENTRYPOINT [ "/bin/bash", "-c", "/usr/local/bin/darkice" ] """