From 9b646162ae4c877843d74332d30edaffe0d9f8d5 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 11 Jul 2017 17:31:45 +0100 Subject: [PATCH] added new Jenkins test to check for unwanted UTF8 files --- Jenkinsfile | 7 +++++++ README.md | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7315488..15c4a35 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -181,6 +181,13 @@ Changelog of Git Changelog. } } + stage('check for UTF-8 files') { + steps { + sh '''echo "$(find . -type f -exec file {} \\;)" > FileList + grep -v ASCII FileList | grep -v git''' + } + } + stage('show diff') { steps { sh 'git diff' diff --git a/README.md b/README.md index 4a73c17..7d3c807 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ |Repo Name| version | Build Status| |---|---|---|---| -|`cd_apache`| 0.0.1.2 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_apache)](https://jenkins.confdroid.com/job/cd_apache/)| +|`cd_apache`| 0.0.1.3 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_apache)](https://jenkins.confdroid.com/job/cd_apache/)| ### Synopsis `Apache httpd` is a very powerful and widely used web server. @@ -110,6 +110,7 @@ All files and directories are configured with correct selinux context. If selinu * `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class. * Puppet Parser * ERB Template Parser +* Test for unwanted UTF8 files in the Puppet code ### Contact Us [contact Us](https://confdroid.com/contact/)