Commit 0a4fe2c1 authored by vipwzw's avatar vipwzw

fix webhook

parent e2e2e2d8
......@@ -12,7 +12,7 @@ pipeline {
retry(1)
timestamps()
gitLabConnection('gitlab33')
gitlabBuilds(builds: ['deploy'])
gitlabBuilds(builds: ['check'])
checkoutToSubdirectory "src/github.com/33cn/plugin"
}
......
......@@ -265,3 +265,20 @@ pullpush:
fi;
make pullsync
git push ${name} ${name}-${b}:${b}
webhook_auto_ci: clean fmt_proto fmt_shell protobuf mock
@-find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l -w -s
@-${auto_fmt}
@-find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l -w -s
@${auto_fmt}
@git status
@files=$$(git status -suno);if [ -n "$$files" ]; then \
git status; \
git commit -a -m "auto ci"; \
git push origin ${b}; \
exit 0; \
fi;
webhook:
git checkout ${b}
make webhook_auto_ci name=${name} b=${b}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment