feat(jenkinsfile): fix syntax for patch application
Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
parent
a5f50f8c59
commit
ae9885585d
1 changed files with 8 additions and 9 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -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
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue