Skip to content

Commit

Permalink
DAOS-15677 cq: remove required-githooks watermark (#15639)
Browse files Browse the repository at this point in the history
Since it did not work in all scenarios and the GHA checks are more
secure than client-side githooks.

Signed-off-by: Dalton Bohning <[email protected]>
  • Loading branch information
daltonbohning authored Dec 20, 2024
1 parent 23fe212 commit f85864e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 115 deletions.
19 changes: 0 additions & 19 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -364,25 +364,6 @@ pipeline {
stage('Check PR') {
when { changeRequest() }
parallel {
stage('Used Required Git Hooks') {
steps {
catchError(stageResult: 'UNSTABLE', buildResult: 'SUCCESS',
message: 'PR did not get committed with required git hooks. ' +
'Please see utils/githooks/README.md.') {
sh 'if ! ' + cachedCommitPragma('Required-githooks', 'false') + '''; then
echo 'PR did not get committed with required git hooks. ' +
'Please see utils/githooks/README.md.'
exit 1
fi'''
}
}
post {
unsuccessful {
echo 'PR did not get committed with required git hooks. ' +
'Please see utils/githooks/README.md.'
}
}
} // stage('Used Required Git Hooks')
stage('Branch name check') {
when { changeRequest() }
steps {
Expand Down
3 changes: 0 additions & 3 deletions utils/githooks/commit-msg

This file was deleted.

87 changes: 0 additions & 87 deletions utils/githooks/commit-msg.d/10-watermark.py

This file was deleted.

6 changes: 0 additions & 6 deletions utils/githooks/hook_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,3 @@ run-parts() {
}

run-parts utils/githooks/"${hook}".d "$@" 1>&2

# Create temp file for the commit-msg watermark to indicate this hook was ran.
# But not for the commit-msg itself.
if [ "${hook}" != "commit-msg" ]; then
touch ".${hook}"
fi

0 comments on commit f85864e

Please sign in to comment.