2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2016 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
14 cd $WORKSPACE/prototypes/xci
16 # for daily jobs, we want to use working versions
17 # for periodic jobs, we will use whatever is set in the job, probably master
18 if [[ "$JOB_NAME" =~ "daily" ]]; then
19 # source pinned-vars to get releng version
20 source ./config/pinned-versions
22 # checkout the version
23 git checkout -q $OPNFV_RELENG_VERSION
24 echo "Info: Using $OPNFV_RELENG_VERSION"
25 elif [[ "$JOB_NAME" =~ "periodic" ]]; then
26 echo "Info: Using $OPNFV_RELENG_VERSION"
29 # proceed with the deployment
30 cd $WORKSPACE/prototypes/xci
31 sudo -E ./xci-deploy.sh