updates Gems and jenkinsfile

This commit is contained in:
Arne Teuke
2018-12-07 13:59:18 +01:00
parent 9800b1e585
commit 2860613dee
2 changed files with 10 additions and 26 deletions

27
Jenkinsfile vendored
View File

@@ -28,9 +28,9 @@ pipeline {
--no-class_inherits_from_params_class-check \\
--no-variable_scope-check \\
--no-80chars-check \\
--no-140chars-check \\
--no-arrow_alignment-check \\
--no-autoloader_layout-check \\
--no-140chars-check \\
--log-format "%{path}:%{line}:%{check}:%{KIND}:%{message}" {} \\;'''
}
}
@@ -38,7 +38,7 @@ pipeline {
stage('puppet parser test') {
steps {
sh '''for file in $(find . -iname \'*.pp\'); do
puppet parser validate --color false --render-as s --modulepath=modules $file || exit 1;
/opt/puppetlabs/bin/puppet parser validate --color false --render-as s --modulepath=modules $file || exit 1;
done;'''
}
}
@@ -59,16 +59,14 @@ pipeline {
stage('update repo structure') {
steps {
sh '''if [ test -f REPOSTRUCTURE.md ]; then
rm -Rf REPOSTRUCTURE.md
fi
sh '''rm -Rf REPOSTRUCTURE.md
echo "$(tree --dirsfirst --charset=ascii .)" > REPOSTRUCTURE.md'''
}
}
stage('create Puppet documention') {
steps {
sh 'puppet strings'
sh '/opt/puppetlabs/bin/puppet strings'
}
}
@@ -165,7 +163,7 @@ Changelog of Git Changelog.
{{#commits}}
<a href="https://github.com/12WW1160/git-changelog-lib/commit/{{hash}}">{{hash}}</a> {{authorName}} <i>{{commitTime}}</i>
<a href="https://gitlab.confdroid.com/12WW1160/git-changelog-lib/commit/{{hash}}">{{hash}}</a> {{authorName}} <i>{{commitTime}}</i>
<p>
<h3>{{{messageTitle}}}</h3>
@@ -184,27 +182,12 @@ Changelog of Git Changelog.
}
}
stage('check for UTF-8 files') {
steps {
sh '''if [ ! -d tests ]; then
mkdir tests
fi
if [ -f tests/UTF_Files ]; then
rm -Rf tests/UTF_Files
fi
echo "$(find . -type f -exec file {} \\;)" > FileList
echo "$(grep -v ASCII FileList | grep -v git)" > tests/UTF_Files'''
}
}
stage('show diff') {
steps {
sh 'git diff'
}
}
stage('recommit changes to repo') {
steps {
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {