GitLab Job File Downloader is a simple Job downloader from gitlab with hooks.
- Download the latest version
- Install dependencies
$ go get . && go mod tidy
- Build the project
$ go build
- Download the latest version and install dependencies.
- Add to gonfig.go:
- Project ID on the project page. Example: 44066311.
- Open the file path in Job and paste everything after
/artifacts/file/
- Example URL:
https://gitlab.com/conradgg/testCI/-/jobs/3876871442/artifacts/file/build/libs/testCI.jar
- Paste
build/libs/testCI.jar
- Example URL:
- Create a new token in the Project Folder -> Settings -> Access Tokens
- Create a new token with API scope and Maintainer role.
- Create a new HTTP Webhook with the URL:
http://YourIP(Domain):port/ListenPath
- Add a Job events trigger and disable SSL Verification.
- Build and run the project.
- Test webhooks