-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jenkins Job Builder 6.0.0 is released and breaks backward compatibility with 5.1.0. The breaking changes with previous 5.1.0 release: - Jobs are now expanded the same way as job templates. - Macros without parameters are now expanded the same way as macros with parameters. - Tags !include-raw: and !include-raw-escape: should now be used the same way in jobs and macros without parameters as they are used in job templates and macros with parameters. - Fix shellcheck warnings Ref: https://storyboard.openstack.org/#!/story/2010963 https://storyboard.openstack.org/#!/story/2010588 Issue: LF-JIRA RELENG-5119 Signed-off-by: Anil Belur <[email protected]> Change-Id: I9c16d62bf40c1396a630b479dca12a62a6e48c56 Signed-off-by: Anil Belur <[email protected]>
- Loading branch information
Showing
13 changed files
with
164 additions
and
123 deletions.
There are no files selected for viewing
Submodule global-jjb
updated
5 files
+1 −1 | jjb/lf-ci-jobs.yaml | |
+9 −9 | jjb/lf-macros.yaml | |
+1 −1 | jjb/lf-maven-jobs.yaml | |
+24 −0 | releasenotes/notes/upgrade-jjb-6x-00f29f4ed84cedce.yaml | |
+4 −4 | tox.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash -l | ||
set -eu -o pipefail | ||
|
||
# If the project is autorelease then we do not need to cd | ||
if [ "$GERRIT_PROJECT" != "releng/autorelease" ]; then | ||
cd "$WORKSPACE/$GERRIT_PROJECT" | ||
fi | ||
|
||
echo "Checking out ${GERRIT_PROJECT} patch ${GERRIT_REFSPEC}..." | ||
git fetch origin "${GERRIT_REFSPEC}" && git checkout FETCH_HEAD | ||
|
||
# If the project is autorelease then we need to init and update submodules | ||
if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then | ||
git submodule update --init | ||
# The previous checkout might have failed to remove directory of a submodule being removed. | ||
# See https://stackoverflow.com/a/10761699 | ||
git clean -dff | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
jjb/integration/distribution/distribution-check-verify-groupid.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash -l | ||
# SPDX-License-Identifier: EPL-1.0 | ||
############################################################################## | ||
# Copyright (c) 2024 The Linux Foundation and others. | ||
# | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v1.0 | ||
# which accompanies this distribution, and is available at | ||
# http://www.eclipse.org/legal/epl-v10.html | ||
############################################################################## | ||
|
||
# This script performs version bumping activities for an ODL release. | ||
echo "---> distribution-check-verify-groupid.sh" | ||
|
||
echo "These are allowed projects: $ALLOW_PROJECTS" | ||
echo "These are distribution pulled projects:" | ||
EXIT_CODE="0" | ||
for PROJECT in /tmp/r/org/opendaylight/*; do | ||
if [[ ! -d "$PROJECT" ]]; then | ||
continue | ||
fi | ||
echo "Checking $PROJECT" | ||
if [[ "$ALLOW_PROJECTS" != *"$PROJECT"* ]]; then | ||
echo "ERROR: Not allowed project $PROJECT pulled" | ||
EXIT_CODE="1" | ||
fi | ||
done | ||
exit $EXIT_CODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash -l | ||
# SPDX-License-Identifier: EPL-1.0 | ||
############################################################################## | ||
# Copyright (c) 2024 The Linux Foundation and others. | ||
# | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v1.0 | ||
# which accompanies this distribution, and is available at | ||
# http://www.eclipse.org/legal/epl-v10.html | ||
############################################################################## | ||
|
||
# This script performs version bumping activities for an ODL release. | ||
echo "---> distribution-check-wipe.sh" | ||
|
||
echo "wipe r: the local Maven repository" | ||
rm -rfv /tmp/r | ||
echo "wipe n: the fake remote (Nexus) repository" | ||
rm -rfv /tmp/n | ||
echo "wipe t: the transient repository used in some manipulations" | ||
rm -rfv /tmp/t | ||
echo "create n: multithreaded execution might fail at creating it." | ||
mkdir /tmp/n | ||
echo "detecting distribution allowed projects" | ||
# Some allowed projects cannot be detected in distribution because they do not produce features. | ||
ALLOW_PROJECTS=(yangtools mdsal openflowjava) | ||
if [[ "$KARAF_VERSION" == "odl" ]]; then | ||
# shellcheck disable=SC2207 | ||
ALLOW_PROJECTS+=($(grep '<groupId>org.opendaylight.' -Rh distribution \ | ||
| sed -e 's%^[ \t]*<groupId>org.opendaylight.%%' \ | ||
| sed -e 's%</groupId>%%' | sort -u)) | ||
else | ||
# For Managed distro we only look at the features folder | ||
# shellcheck disable=SC2207 | ||
ALLOW_PROJECTS+=($(grep '<groupId>org.opendaylight.' -Rh distribution/features \ | ||
| sed -e 's%^[ \t]*<groupId>org.opendaylight.%%' \ | ||
| sed -e 's%</groupId>%%' | sort -u)) | ||
fi | ||
echo "Allowed projects are " "${ALLOW_PROJECTS[@]}" | ||
echo "ALLOW_PROJECTS= " "${ALLOW_PROJECTS[@]}" > allowed_projects.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
echo "Archiving csit artifacts" | ||
cd "$WORKSPACE" || exit | ||
mkdir -p ./archives | ||
for i in $(seq 1 "${NUM_ODL_SYSTEM}"); do | ||
NODE_FOLDER="./archives/odl_${i}" | ||
mkdir -p "${NODE_FOLDER}" | ||
mv odl"${i}"_* "${NODE_FOLDER}" || true | ||
mv karaf_"${i}"_*_threads* "${NODE_FOLDER}" || true | ||
mv -- *_"${i}".png "${NODE_FOLDER}" || true | ||
mv /tmp/odl"${i}"_* "${NODE_FOLDER}" || true | ||
mv gclogs-"${i}" "${NODE_FOLDER}" || true | ||
done | ||
curl --output robot-plugin.zip "$BUILD_URL/robot/report/*zip*/robot-plugin.zip" | ||
unzip -d ./archives robot-plugin.zip | ||
mv -- *.log *.log.gz *.csv *.png ./archives || true # Don't fail if file missing | ||
# TODO: Can the following line ever fail? | ||
find . -type f -name '*.hprof' -print0 \ | ||
| tar -cvf - --null -T - | xz --threads=0 > ./archives/hprof.tar.xz | ||
# TODO: Tweak the compression level if better ratio (or speed) is needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
#The following script runs any configurable postplan stored in test/csit/postplans. | ||
if [ -f "${WORKSPACE}/test/csit/postplans/${TESTPLAN}" ]; then | ||
echo "postplan exists!!!" | ||
echo "Changing the postplan path..." | ||
script_name=${WORKSPACE}/test/csit/postplans/${TESTPLAN} | ||
sed "s:integration:${WORKSPACE}:" "${script_name}" > postplan.txt | ||
cat postplan.txt | ||
grep -Ev '(^[[:space:]]*#|^[[:space:]]*$)' postplan.txt | while read -r line ; do | ||
echo "Executing ${line}..." | ||
${line} | ||
done | ||
fi |
Oops, something went wrong.