Files
gitea-themes/Jenkinsfile
Vulpovile 10083bfe1b
Some checks failed
Flare Microsystems Git/FlarePublic/gitea-themes/pipeline/pr-master There was a failure building this commit
Fix jenkinsfile
2025-01-11 14:25:30 -08:00

36 lines
917 B
Groovy

pipeline {
agent any
stages {
stage('Check Indentation') {
steps {
script {
// Check for spaces or mixed indentation
sh '''
if grep -P "^[ ]+" -r ./**/*.css; then
echo "Error: Files contain spaces instead of tabs for indentation."
exit 1
fi
if grep -P "^\\t+ +" -r ./**/*.css; then
echo "Error: Files contain mixed tabs and spaces for indentation."
exit 1
fi
echo "No indentation errors detected."
'''
}
}
}
stage('Validate CSS Syntax') {
steps {
script {
sh 'stylelint ./**/*.css'
}
}
}
}
}