Nathan Woodburn
f6dad3985d
All checks were successful
Woodburn Main/woodburn/pipeline/head This commit looks good
16 lines
364 B
Groovy
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'''
|
|
}
|
|
}
|
|
}
|
|
} |