woodburn/Jenkinsfile
Nathan Woodburn 2eba52c1e0
All checks were successful
Woodburn Main/woodburn/pipeline/head This commit looks good
cd: First tag cleanup attempt
2023-07-13 17:26:08 +10:00

16 lines
373 B
Groovy

pipeline {
agent any
stages {
stage('Files') {
steps {
sh returnStdout: true, script: '''for file in "$directory"/*.html; do
if [[ -f "$file" ]]; then
sed -i \'s/\\(<link rel="canonical" href="\\)\\(.*\\)\\(.html" \\)/\\1\\2\\3/\' "$file"
echo "Modified: $file"
fi
done'''
}
}
}
}