woodburn/Jenkinsfile

16 lines
364 B
Plaintext
Raw Normal View History

2023-07-13 17:19:45 +10:00
pipeline {
agent any
stages {
stage('Files') {
steps {
2023-07-13 17:30:29 +10:00
sh returnStdout: true, script: '''for file in "."/*.html; do
2023-07-13 17:26:08 +10:00
if [[ -f "$file" ]]; then
sed -i \'s/\\(<link rel="canonical" href="\\)\\(.*\\)\\(.html" \\)/\\1\\2\\3/\' "$file"
echo "Modified: $file"
fi
2023-07-13 17:19:45 +10:00
done'''
}
}
}
}