mirror of
https://github.com/appleboy/drone-jenkins.git
synced 2026-06-04 18:23:57 +08:00
6ef9ab8751a3f9d3edaadafa3b3ca083799a44f5
drone-jenkins
Drone plugin for trigger Jenkins jobs.
Build
Build the binary with the following commands:
$ make build
Testing
Test the package with the following command:
$ make test
Docker
Build the docker image with the following commands:
$ make docker
Please note incorrectly building the image for the correct x64 linux and with GCO disabled will result in an error when running the Docker image:
docker: Error response from daemon: Container command
'/bin/drone-jenkins' not found or does not exist..
Usage
Execute from the working directory:
docker run --rm \
-e PLUGIN_BASE_URL=http://example.com \
-e PLUGIN_USERNAME=xxxxxxx \
-e PLUGIN_TOKEN=xxxxxxx \
-e PLUGIN_JOB=xxxxxxx \
-v $(pwd):$(pwd) \
-w $(pwd) \
appleboy/drone-jenkins
Load all environments from file.
docker run --rm \
-e ENV_FILE=your_env_file_path \
-v $(pwd):$(pwd) \
-w $(pwd) \
appleboy/drone-jenkins
Languages
Go
94.7%
Makefile
4.2%
Dockerfile
1.1%