Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleActions and Commands

The Commands and Actions Jenkins Bot can perform :

Open source Referencehttps://www.npmjs.com/package/jenkins
ActionsCommands
OpenSource

List Jobs

jenkins list

Yes

Build Jobs

jenkins build <job name/job number>

Yes

Describe job

jenkins describe <jobname>

Yes

Last Build Job Status

jenkins last <jobname>

Yes

Jenkins Username the Hubot has for you

jenkins auth

Yes

Clear Jenkins Credentials

jenkins auth clear

Yes

Enable a Job in Jenkins

enable <jobname>

Yes

Disable a Job in Jenkins

disable <jobname>

Yes

List Jobs

jenkins list

No

List Jobs

jenkins list

Yes

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

localconfig

<config_file>.xml

No

Delete a Job

delete job <jobname>

No

Install plugin(s)

install <plugin1> <plugin2>….. in jenkins

No

Restart Jenkins

restart jenkins

No

Build Job with Params (pre-existing keys)

start <jobname> build with params <param1>=<paramvalue1> <param2>=<paramvalue=2>

No

Add New Params

give <jobname> config /  upload <jobname> config

No
Info


        Image Added → Actions available by default

        Image Added → Actions enriched by OneDevOps | OnBot

Info
titleFor 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.