woodburn/Jenkinsfile
Nathan Woodburn f6dad3985d
All checks were successful
Woodburn Main/woodburn/pipeline/head This commit looks good
cd: Fix location
2023-07-13 17:30:29 +10:00

16 lines
364 B
Groovy

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