Jenkins is running in a private cloud with a different than provided

If you needed the feature provided by PR #9, allowing job urls to be
overwritten by the given server url, this feature is opt-in as of v0.8.0. By
default we will use the PROVIDED url from the Jenkins api, which supports
different context roots.

If a netrcMachine and username/password are provided, the netrc machine will be
used. If using username/password, please pass them in via a command line
argument instead of hardcoding in the build file.

If you are using Github OAuth for authentication, use API token instead of
password which you can find at <server-address>/user/<your-user-name>/configure.

Usage

grunt-jenkins makes it easier to evolve your
Jenkins installation. Jenkins configurations are often created
by many people over a long time. Making changes to Jenkins confidently without
the appropriate tools can be difficult.

Back up the configuration

Having configuration in source control gives us the confidence to make changes
and know that we can go back to a working state. To create a backup of all jobs
run grunt jenkins-backup-jobs. Behind the scenes, grunt-jenkins will:

Create pipelineDirectory if necessary

For each job: Create pipelineDirectory/jobName/config.xml

Verify the backup, constantly

Having our jobs in source control is great, but it can't make us completely
confident. Jenkins encourages users to change the configuration through the UI,
and that can leave our backed up version out of sync with the server.
grunt-jenkins makes it easy to verify the configuration in source control
matches exactly the version running on the server. Create a job as part of your
pipeline that runs grunt jenkins-verify-jobs to ensure the configuration is
the same as source control.

In The News

Release History

0.8.0 on 20-Nov-2016

If you need the support provided by #9 for using the given
server address instead of the job url provided by the Jenkins API,
this is now opt-in by setting jobUrlResolutionStrategy to
'REWRITE_WITH_SERVER_ADDRESS'

Upgrade request dependency to 2.79.0

0.7.1 on 7-Nov-2016

Whitelist files for package to exclude unnecessary files from installation