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
|
||||
|
||||
# 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
|
||||
|
||||
# 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"
|
||||
done
|
||||
echo "All patches applied."
|
||||
else
|
||||
echo "No patch files found."
|
||||
fi
|
||||
fi
|
||||
done
|
||||
echo "All patches applied."
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue