Updated Jenkins configuration to use , to be consistent with the GitLab caching mechanism.

This commit is contained in:
Luke Anderson 2019-05-07 14:00:15 +10:00
parent 0d5c3f3643
commit 0bfe578810
No known key found for this signature in database
GPG Key ID: 44408169EC61E228
2 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@ RUN git clone https://github.com/google/protobuf.git && \
rm -r protobuf rm -r protobuf
RUN mkdir /cargocache && chmod -R ugo+rwX /cargocache RUN mkdir -p /cache/cargocache && chmod -R ugo+rwX /cache/cargocache
ENV CARGO_HOME /cargocache ENV CARGO_HOME /cache/cargocache
RUN rustup component add rustfmt clippy RUN rustup component add rustfmt clippy

2
Jenkinsfile vendored
View File

@ -2,7 +2,7 @@ pipeline {
agent { agent {
dockerfile { dockerfile {
filename 'Dockerfile' filename 'Dockerfile'
args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"' args '-v cargo-cache:/cache/cargocache:rw -e "CARGO_HOME=/cache/cargocache"'
} }
} }
stages { stages {