Jenkins Workflow

An Alfred Workflow

Short Description

Jenkins workflow to gather status and run jobs

Last Updated

08 Aug 2015


Mountain Lion
Snow Leopard
Yes Yes Yes Yes Yes



Bundle ID






First thing that needs to be done is to setup the information needed to run the workflow. To do this run the following command:

  • jenkinsinfo

This will allow you to set the following values:

  • hostname (required): The hostname of the jenkins server (ex.
  • username (required): The username used to login to the jenkins server
  • password (required): The password used to login to the jenkins server
  • protocol (required - default is https): The protocol the jenkins server sits on
  • gitrepo (optional - relative to your home directory): If specified this will gather the current branch name that is checked out and default it to your first parameter

Once the information above is specified, you can run the following command to gather all job statuses:

  • jenkins status

​In addition, you can specify the following command:

  • jenkins run <param1>  <param2>...

This will return a list of any jobs that are configured to run using the api (token setup - and the parameter names associated to each job. You can specify values for each parameter within the alfred prompt (if any), all separated by 2 spaces. If you have the gitrepo set, this will default to the first parameter can override by typing something else for param1 OR retain that value by simply inserting 2 spaces and moving onto the next param.

There are some other jenkins workflows that do similar status checks, but I haven't found one that allows you to run jobs remotely which is why I created this.

Hope this helps someone out there :)