3 # Copyright (c) 2023 Cisco and/or its affiliates.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 echo "---> jjb/scripts/vpp/copy_archives.sh"
21 # Copy robot archives from perf job to where archive macro needs them.
23 # This has to be a script separate from csit-perf.sh, run as publisher,
24 # because otherwise it is not easily possible to ensure this is executed
25 # also when there is a test case failure.
27 # This can be removed when all CSIT branches use correct archive directory.
28 # For fixed CSIT, the copy will fail, so errors are ignored everywhere.
31 # - WORKSPACE - Jenkins workspace to create csit subdirectory in.
32 # Directories updated:
33 # - ${WORKSPACE}/archives/csit_* - Test results for various VPP builds are here.
34 # e.g. csit_current and csit_parent for vpp per-patch perf job.
36 mkdir -p "${WORKSPACE}/archives"
37 # Using asterisk as bisect job creates variable number of directories.
38 cp -Rv "${WORKSPACE}/csit_"* "${WORKSPACE}/archives"