- For use in k8s - need rewrite manifests in k8s/push-receivers
- For use Docker you can just
make compile && make docker(GOPATH Installed before)
- Redis
- go to you gitlab and setup webhook or system hook to push-receiver url
- go to jenkins and create job, what receiver is started and add Token for triggered remotly
- if you need - you can setup another job for clearing remotely
- setup Push Receiver config:
- "name": "projectName in Gitlab",
- "job": "JobNameInJenkins",
- "host": "HostParametersInJenkins(not required)",
- "removeJob": "JobNameForCleanUp(not required)",
- "branches": ["master", "test"]
- setup Push Receiver Env Variables:
- PU_JENKINS_URL - Jenkins Url (http://jenkins.cis.local/buildByToken/buildWithParameter)
- PU_JENKINS_TOKEN - Token for triggering job
- PU_JENKINS_USER - Jenkins user, who can get information from jenkins
- PU_JENKINS_USER_TOKEN - This user token
- PU_SKYPE_GITLAB - gitlab api url (https://gitlab/api/v3/users?search=)
- PU_SKYPE_GITLAB_TOKEN - token for gitlab connect
- PU_REDIS_HOST - redis host
- PU_REDIS_PORT - redis port