actions: Remove jenkins
All checks were successful
OnPush / CheckFiles (push) Successful in 7s

This commit is contained in:
Nathan Woodburn 2023-07-17 16:54:28 +10:00
parent 6cfd279b0a
commit f026612db2
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 2 additions and 27 deletions

View File

@ -18,10 +18,10 @@ jobs:
run: |
for file in *.html; do
if grep -q "$file" "$file"; then
echo "File $file contains $file!"
echo "File $file contains canonical tag with .html!"
exit 1
else
echo "File $file does not contain $file!"
echo "File $file is correct!"
fi
done

25
Jenkinsfile vendored
View File

@ -1,25 +0,0 @@
pipeline {
agent any
stages {
stage('Verify canonical tags') {
steps {
script {
def fileExists = false
def affectedFiles = sh(
script: 'find . -type f -name "*.html" -exec grep -l "{}" "{}" \\;',
returnStdout: true
).trim()
// If affectedFiles is not empty, set fileExists to true
if (affectedFiles) {
fileExists = true
}
if (fileExists) {
mail bcc: '', body: 'Woodburn website canonical tages incorrect.', cc: '', from: 'noreply@woodburn.au', replyTo: 'noreply@woodburn.au', subject: 'Woodburn failed', to: 'jenkins@woodburn.au'
error("Error: Found occurrences of file names with the .html extension in the following files:\n${affectedFiles}")
}
}
}
}
}
}