Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jenkins NodeJS Plugin: Missing nodejs.org installers

Jenkins NodeJS Plugin: Missing nodejs.org installers

Versions

  • Ubuntu 14.04 LTS x64
  • Java 1.7
  • Jenkins 1.639
  • NodeJS plugin 0.2.1

Overview

After setting up a clean Jenkins install and installing the NodeJS plugin no nodejs.org auto-installers are available.

Steps to Reproduce

  1. Install Ubuntu
  2. Install Jenkins
  3. Install Jenkins NodeJS plugin
  4. Go to http://$JENKINS_HOME/configure
  5. Select the NodeJS Installations... button
  6. Select the Add NodeJS button
  7. Check Install automatically
  8. Select the Add installer button
  9. Select Install from nodejs.org
  10. Note the first field Installation is a text input, not the expected select

Cause

The update center metadata needs updating (ref).

Fix

To update the update center metadata:

  1. Go to http://$JENKINS_HOME/pluginManager/advanced
  2. Select the Check now button (bottom right)

NOTE

Updating the metadata can cause this error to appear:

Signature verification failed in downloadable 'hudson.tasks.Maven.MavenInstaller'

WARNING: I donʼt know what the implications are of the below workaround. I'm just summarizing the advice from JENKINS-31089

The workaround to temporarily fix this:

  1. Open the jre/lib/security/java.security file (on my install this was at /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security)

  2. Find the line

    jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
    
  3. Change 1024 to 512, so the line should end up:

    jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 512
    
  4. Restart Jenkins:

    service jenkins restart
  5. Repeat the fix (updating the update center metadata)

nodejs.org installers should now be available in http://$JENKINS_HOME/configure!

Refs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.