From f026612db2662c958864ceba7debf14e4cfb8359 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 17 Jul 2023 16:54:28 +1000 Subject: [PATCH] actions: Remove jenkins --- .gitea/workflows/push.yml | 4 ++-- Jenkinsfile | 25 ------------------------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 Jenkinsfile diff --git a/.gitea/workflows/push.yml b/.gitea/workflows/push.yml index 0a397fc..4be9bd6 100644 --- a/.gitea/workflows/push.yml +++ b/.gitea/workflows/push.yml @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index becb860..0000000 --- a/Jenkinsfile +++ /dev/null @@ -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}") - } - } - } - } - } -} \ No newline at end of file