Skip to content
Snippets Groups Projects
Commit 2ada69e3 authored by vlorentz's avatar vlorentz
Browse files

Configure sccache before running jenkins/install-non-python-deps.sh

These dependencies take three minutes to build
parent 10e01d45
Branches master
No related tags found
1 merge request!252Configure sccache before running jenkins/install-non-python-deps.sh
Pipeline #13964 passed
...@@ -45,12 +45,26 @@ pipeline { ...@@ -45,12 +45,26 @@ pipeline {
stage('Install dependencies') { stage('Install dependencies') {
steps { steps {
sh ''' {% if production_jenkins %}
if [ -f 'jenkins/install-non-python-deps.sh' ]; then withCredentials([
./jenkins/install-non-python-deps.sh string(credentialsId: 'sccache-redis-endpoint', variable: 'SCCACHE_REDIS_ENDPOINT'),
fi string(credentialsId: 'sccache-redis-password', variable: 'SCCACHE_REDIS_PASSWORD'),
''' ]) {
{% endif %}
sh '''
set -e
if [ -f 'jenkins/install-non-python-deps.sh' ]; then
prepare-cargo-cache
export RUSTC_WRAPPER=sccache
export CARGO_INCREMENTAL=0
./jenkins/install-non-python-deps.sh
fi
'''
}
{% if production_jenkins %}
} }
{% endif %}
} }
{%- if do_rust %} {%- if do_rust %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment