Jenkins
The Commands and Actions Jenkins Bot can perform :
Actions | Commands |
---|---|
List Jobs | jenkins list |
Build Jobs | jenkins build <job name/job number> |
Describe job | jenkins describe <jobname> |
Last Build Job Status | jenkins last <jobname> |
Jenkins Username the Hubot has for you | jenkins auth |
Clear Jenkins Credentials | jenkins auth clear |
Enable a Job in Jenkins | enable <jobname> |
Disable a Job in Jenkins | disable <jobname> |
List Jobs | jenkins list |
Create a Job (Place the config file (For example: localconfig,xml) under <botParentDirectory>/scripts folder and use the given command to create custom job in jenkins) | create job <jobname> with <config_file>.xml |
Delete a Job | delete job <jobname> |
Install plugin(s) | install <plugin1> <plugin2>….. in jenkins |
Restart Jenkins | restart jenkins |
Build Job with Params (pre-existing keys) | start <jobname> build with params <param1>=<paramvalue1> <param2>=<paramvalue=2> |
Add New Params | give <jobname> config / upload <jobname> config |
→ Actions available by default
→ Actions enriched by OneDevOps | OnBot
For Jenkins2.x users
If you are using Jenkins 2.x versions then you must enable CSRF protection in your jenkins instance for the bot to work correctly. Refer here to know more about how to enable CSRF protection in jenkins.