feat(jenkinsfile): fix syntax for patch application

Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
zontreck 2024-10-06 15:03:40 -07:00
parent a5f50f8c59
commit ae9885585d

17
Jenkinsfile vendored
View file

@ -55,17 +55,16 @@ pipeline {
cd patches cd patches
# Only proceed if there are patch files
if compgen -G "*.patch" > /dev/null; then # Loop over all patch files and apply them
# Loop over all patch files and apply them for patch_file in *.patch; do
for patch_file in *.patch; do if [ -f "$patch_file" ]
then
echo "Applying $patch_file to ../phoenix-firestorm/" echo "Applying $patch_file to ../phoenix-firestorm/"
patch -d ../phoenix-firestorm/ -Np1 -i "$patch_file" patch -d ../phoenix-firestorm/ -Np1 -i "$patch_file"
done fi
echo "All patches applied." done
else echo "All patches applied."
echo "No patch files found."
fi
''' '''
} }
} }