• Stars
    star
    36
  • Rank 710,170 (Top 15 %)
  • Language
    Go
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Drone plugin for trigger Jenkins jobs.

drone-jenkins

logo

GoDoc Build Status codecov Go Report Card Docker Pulls microbadger

Drone plugin for trigger Jenkins jobs.

Setup the Jenkins Server

Setup the Jenkins server using the docker command:

$ docker run \
  --name jenkins \
  -d --restart always \
  -p 8080:8080 -p 50000:50000 \
  -v /data/jenkins:/var/jenkins_home \
  jenkins/jenkins:lts

Please make sure that you create the /data/jenkins before starting the Jenkins. Create the new API token as below:

jenkins token

Build or Download a binary

The pre-compiled binaries can be downloaded from release page. Support the following OS type.

  • Windows amd64/386
  • Linux amd64/386
  • Darwin amd64/386

With Go installed

go get -u -v github.com/appleboy/drone-jenkins

or build the binary with the following command:

make build

Docker

Build the docker image with the following commands:

make docker

Usage

There are three ways to trigger jenkins jobs.

Usage from binary

trigger single job.

drone-jenkins \
  --host http://jenkins.example.com/ \
  --user appleboy \
  --token XXXXXXXX \
  --job drone-jenkins-plugin

trigger multiple jobs.

drone-jenkins \
  --host http://jenkins.example.com/ \
  --user appleboy \
  --token XXXXXXXX \
  --job drone-jenkins-plugin-1 \
  --job drone-jenkins-plugin-2

Usage from docker

trigger single job.

docker run --rm \
  -e JENKINS_BASE_URL=http://jenkins.example.com/
  -e JENKINS_USER=appleboy
  -e JENKINS_TOKEN=xxxxxxx
  -e JENKINS_JOB=drone-jenkins-plugin
  appleboy/drone-jenkins

trigger multiple jobs.

docker run --rm \
  -e JENKINS_BASE_URL=http://jenkins.example.com/
  -e JENKINS_USER=appleboy
  -e JENKINS_TOKEN=xxxxxxx
  -e JENKINS_JOB=drone-jenkins-plugin-1,drone-jenkins-plugin-2
  appleboy/drone-jenkins

Usage from drone ci

Execute from the working directory:

docker run --rm \
  -e PLUGIN_URL=http://example.com \
  -e PLUGIN_USER=xxxxxxx \
  -e PLUGIN_TOKEN=xxxxxxx \
  -e PLUGIN_JOB=xxxxxxx \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  appleboy/drone-jenkins

You can get more information about how to use scp plugin in drone.

Testing

Test the package with the following command:

make test

More Repositories

1

gorush

A push notification server written in Go (Golang).
Go
7,213
star
2

ssh-action

GitHub Actions for executing remote ssh commands.
Dockerfile
3,247
star
3

gin-jwt

JWT Middleware for Gin framework
Go
2,545
star
4

scp-action

GitHub Action that copy files and artifacts via SSH.
Shell
824
star
5

telegram-action

GitHub Action that sends a Telegram message.
Dockerfile
660
star
6

react-recaptcha

A react.js reCAPTCHA for Google
JavaScript
633
star
7

CodeGPT

A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4, gpt-3.5-turbo model) and automatically installs a git prepare-commit-msg hook.
Go
521
star
8

gofight

Testing API Handler written in Golang.
Go
437
star
9

lambda-action

GitHub Action for Deploying Lambda code to an existing function
Go
315
star
10

easyssh-proxy

easyssh-proxy provides a simple implementation of some SSH protocol features in Go
Go
287
star
11

drone-ssh

Drone plugin for executing remote ssh commands
Go
222
star
12

go-fcm

Firebase Cloud Messaging Library for Golang
Go
212
star
13

gulp-compass

Compass plugin for gulp
JavaScript
174
star
14

golang-graphql-benchmark

benchmark of golang GraphQL framework.
Go
127
star
15

drone-scp

Copy files and artifacts via SSH using a binary, docker or Drone CI.
Go
117
star
16

CodeIgniter-reCAPTCHA

reCAPTCHA library for CodeIgniter
PHP
106
star
17

drone-on-kubernetes

Examples of how to run Drone on Kubernetes (AWS && GKE)
Shell
101
star
18

flutter-gorush

flutter demo app with gorush (push notification server)
Dart
95
star
19

docker-backup-database

Docker image to periodically backup your database (MySQL, Postgres, or MongoDB) to S3 or local disk.
Go
93
star
20

drone-telegram

Drone plugin for sending Telegram notifications
Go
89
star
21

jenkins-action

GitHub Action that trigger Jenkins job.
Dockerfile
83
star
22

CodeIgniter-Native-Session

codeigniter native session
PHP
82
star
23

nginx-image-resizer

Docker Container of real time image resizing and caching
Shell
81
star
24

html5-template-engine

html5 template engine with CoffeeScript, Compass, RequireJS.
CoffeeScript
80
star
25

drone-line

Sending line notifications using a binary, docker or Drone CI.
Go
79
star
26

discord-action

GitHub Action that sends a Discord message.
Dockerfile
76
star
27

npm-vs-yarn

npm vs yarn install speed testing.
Dockerfile
70
star
28

gin-lambda

running golang using gin framework in AWS Lambda & API Gateway
Go
65
star
29

drone-git-push

Drone plugin for deploying code using git push
Go
62
star
30

facebook-action

GitHub Action that sends a Facebook message.
Dockerfile
61
star
31

gitlab-ci-action

GitHub Action that trigger gitlab CI build.
Dockerfile
61
star
32

CodeIgniter-Log-Library

Store php error or exception logs into database.
PHP
60
star
33

macbook

Some tips and command for my MacOS.
59
star
34

CodeIgniter-Nexmo-Message

Class Nexmo Message handles the methods and properties of sending an SMS message.
PHP
48
star
35

graceful

graceful shutdown package when a service is turned off by software function
Go
48
star
36

drone-terraform-in-aws

drone infrastructure in AWS
HCL
47
star
37

awesome-interviews

:octocat: A curated awesome list of lists of interview questions. Feel free to contribute! 🎓
38
star
38

Shell-Script

Shell Script on FreeBSD or Ubuntu
Shell
37
star
39

PHP-Git-Deploy

Git Deployment with PHP
PHP
36
star
40

drone-discord

Drone plugin for sending message to Discord channel using Webhook
Go
35
star
41

CodeIgniter-App

Integrate RESTfull API, Base Model, Ion Auth module and template module
PHP
35
star
42

dotfiles

Bootstrap for your terminal on Linux or FreeBSD
Shell
33
star
43

golang-testing

Docker image includes golang coverage tools for testing.
Roff
29
star
44

gh-pages-action

A GitHub Action to deploy a static site on GitHub Pages.
Shell
28
star
45

codeigniter-docker

Like Laravel Homestead but for Docker with CodeIgniter Framework.
Shell
28
star
46

drone-lambda

Deploying Lambda code with drone CI to an existing function
Go
25
star
47

loadbalancer-algorithms

Load balancer Algorithms
Go
24
star
48

gin-status-api

Golang cpu, memory, gc, etc information api handler written in Go (Golang) for gin framework
Go
23
star
49

docker-multi-stage-build

Multi-Stage Docker Builds for Creating Tiny Go Images
Makefile
23
star
50

linkit-smart-7688-golang

Build static binary using golang for MT7688.
22
star
51

CodeIgniter-Google-URL-Shortener-API

CodeIgniter Google URL Shortener API
PHP
22
star
52

CodeIgniter-Template

A Lightweight Codeigniter Template Libray
PHP
21
star
53

codeigniter-facebook-php-sdk-v4

Intergrate facebook php sdk v4 with CodeIgniter Framewrok.
PHP
20
star
54

docker-ecr-action

Publish Docker Images to the Amazon Elastic Container Registry (ECR)
Dockerfile
19
star
55

flutter-docker

Unit testing for flutter in Docker
Dockerfile
19
star
56

com

This is an open source project for commonly used functions for the Go programming language.
Go
18
star
57

drone-gitlab-ci

Drone plugin for trigger gitlab-ci jobs.
Go
18
star
58

CodeIgniter-Gearman-Library

Gearman library for CodeIgniter PHP Framework
PHP
18
star
59

go-kkbox

KKBOX Open API SDK for Golang.
Go
17
star
60

jquery-migrate

shim repo for jQuery Migrate package
16
star
61

go-storage

storage interface for local disk or AWS S3 (or Minio) platform
Go
15
star
62

minify-tool

minify all html, css, js and optimize image files for web project.
Shell
15
star
63

drone-facebook

Drone plugin for sending Facebook notifications
Go
15
star
64

ansible-drone

Ansible role to configure drone (server and agent)
Jsonnet
15
star
65

server-configs

Linux Server Config
Nginx
14
star
66

drone-packer

drone plugin for build Automated Machine Images
Go
14
star
67

database-backup-action

GitHub Actions for periodically backup your database (MySQL, Postgres, or MongoDB) to S3 or local disk.
Roff
14
star
68

PHP-CodeIgniter-Framework-Taiwan

CodeIgniter 是一套小巧但功能强大的 PHP 框架,做為一個簡單而“優雅”的工具包,它是一套專為 PHP 開發者建立功能完善的 Web 應用程序。如果你是一個使用虛擬主機,並且為客戶所要求的期限而煩惱的開發人員,如果你已經厭倦那些難而且效率不高的框架
JavaScript
14
star
69

drone-sftp-cache

Drone plugin for caching artifacts to a central server using sftp
Go
13
star
70

jquery.slideShow

This simple slideshow plugin will provide your effect gallery
JavaScript
10
star
71

js-video-player

Integrate Dailymotion, Vimeo, Youtube API.
JavaScript
10
star
72

slush-html5-template

html5 template engine generator (RequireJS/CoffeeScript/Compass/jQuery/Mocha) for Slush.
CSS
10
star
73

jquery-twzipcode

在網頁建立多組 3 碼台灣郵遞區號表單元素的 jQuery Plugin ─ 讀取快速、不需使用資料庫。
JavaScript
10
star
74

go-spgateway

智付通金流串接
Go
9
star
75

drone-on-docker-compose

Drone running on docker-compose
9
star
76

php-i18n

PHP i18n Library
PHP
9
star
77

CodeIgniter-i18n

i18n library for CodeIgniter 2.1.x
PHP
8
star
78

go-jwt-server

JWT Token Server written in Go (Golang)
Go
8
star
79

git-hooks

Parse PHP error on php files and detect "console syntax" on javascript or coffee files before commit.
Shell
8
star
80

go-hello

hello world for go lang
Makefile
8
star
81

Codeigniter-Base-Model

CodeIgniter base CRUD model to remove repetition and increase productivity
PHP
7
star
82

livescript-gulp

A tiny wrapper around Gulp to run your gulpfile.ls.
JavaScript
7
star
83

appleboy.github.com

My Home Page
HTML
7
star
84

CodeIgniter-TextMagic-API

CodeIgniter Library for TextMagic API
PHP
7
star
85

backbone-template-engine

Backbone template engine with CoffeeScript, Compass, RequireJS.
ApacheConf
7
star
86

blog

My Chinese Blog
PHP
6
star
87

codegpt-action

GitHub Action for generating code review brief using ChatGPT AI (gpt-4, gpt-3.5-turbo model)
Shell
6
star
88

go-myallocator

Golang SDK for OTA's to easily integrate with the MyAllocator OTA BuildToUs API
Go
6
star
89

CodeIgniter-Plurk-API

A Plurk API Module for CodeIgniter
PHP
6
star
90

line-action

GitHub Action that sends a Line message.
Dockerfile
5
star
91

go-mailer

send email package
Go
5
star
92

appleboy

5
star
93

android-docker

Android Docker image
Shell
5
star
94

gin-revision-middleware

Revision middleware for Gin framework written in Go (Golang).
Go
5
star
95

sails-auth-ldap-example

Example SailsJS application with ldap authentication.
JavaScript
5
star
96

drone-minio

Drone plugin to upload or remove filesystems and object storage.
Go
5
star
97

detect

Golang library to detect the device platform given an user agent.
Go
4
star
98

laravel-elixir-cssfmt

Laravel Elixir CSSfmt Extension
JavaScript
4
star
99

golang-cli-example

CLI Example for Golang
Go
4
star
100

cacheman-promise

cacheman library with a promise interface
JavaScript
4
star