Skip to content
Snippets Groups Projects
Commit 390fd0b7 authored by Raghunandan Netrapalli Madhusudhan's avatar Raghunandan Netrapalli Madhusudhan
Browse files

copy artifacts from downstream

parent 51061156
No related branches found
No related tags found
No related merge requests found
Pipeline #70962 failed
...@@ -98,20 +98,37 @@ spec: ...@@ -98,20 +98,37 @@ spec:
PYTHON_EXECUTABLE = 'python3' PYTHON_EXECUTABLE = 'python3'
} }
stages { stages {
stage('Linux: Cleanup') {
steps {
container('openpass-build') {
sh 'bash repo/utils/ci/scripts/prepare.sh'
}
}
}
stage('Run E2E') { stage('Run E2E') {
steps { steps {
build job: 'opEnd2End_Test', parameters: [string(name: 'OPTESTRUNNER_URL', value: "${env.OPTESTRUNNER_URL}"), script {
string(name: 'GECCO_URL', value:"${env.GECCO_URL}"), def e2eDownStream = build(job: 'opEnd2End_Test',
string(name: 'GTGEN_CLI_URL', value: "${env.GTGEN_CLI_URL}"), parameters: [string(name: 'OPTESTRUNNER_URL', value: "${env.OPTESTRUNNER_URL}"),
string(name: 'GTGEN_SIM_URL', value: "${env.GTGEN_SIM_URL}")], string(name: 'GECCO_URL', value:"${env.GECCO_URL}"),
propagate: true string(name: 'GTGEN_CLI_URL', value: "${env.GTGEN_CLI_URL}"),
string(name: 'GTGEN_SIM_URL', value: "${env.GTGEN_SIM_URL}")],
propagate: true,
wait: true)
copyArtifacts(
projectName: 'opEnd2End_Test',
selector: specific("${e2eDownStream.number}"),
filter: '**/*.tar.gz',
target: 'artifacts/'
)
}
} }
} }
} }
post { post {
always { always {
script { script {
sh 'bash repo/utils/ci/scripts/90_pack_artifacts.sh' // sh 'bash repo/utils/ci/scripts/90_pack_artifacts.sh'
archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false
junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml' junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml'
} }
......
#!/bin/bash
################################################################################
# Copyright (c) 2021 in-tech GmbH
# 2022-2025 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# SPDX-License-Identifier: EPL-2.0
################################################################################
################################################################################
# This script prepares building
################################################################################
MYDIR="$(dirname "$(readlink -f $0)")"
cd "$MYDIR/../../../.." || exit 1
if [ ! -d repo ]; then
echo "repo folder doesn't exist as expected. exiting."
exit 1
fi
# wipe build directories and pyOpenPASS results
rm -rf artifacts deps
mkdir artifacts
printenv
exit 0
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