Files
gitea-themes/Jenkinsfile
Vulpovile 0bbceea474
All checks were successful
Flare Microsystems Git/FlarePublic/gitea-themes/pipeline/pr-master This commit looks good
Fix jenkinsfile
2025-01-11 14:57:07 -08:00

37 lines
1.0 KiB
Groovy

pipeline {
agent any
stages {
stage('Check Indentation') {
steps {
script {
// Check for spaces or mixed indentation
sh '''
EXTENSIONS={css,js,json,java,bat,ps1,py,cs,html,c,cpp,h,hpp,cmd}
if grep -P "^[ ]+" -r --include=*.$EXTENSIONS ; then
echo "Error: Files contain spaces instead of tabs for indentation."
exit 1
fi
if grep -P "^\\t+ +" -r --include=*.$EXTENSIONS ; 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'
}
}
}
}
}