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

9
Jenkinsfile vendored
View file

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