Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
src
.gitignore
README.adoc
pom-sync.xml
pom.xml

README.adoc

  1. You will need to BUILD this project first.

    $ export JAVA_HOME=/opt/sun-java2-8.0/; mvn clean install

  1. Once built, you can then configure its use. See pom-sync.xml for a sample invocation, and run it like this:

    $ export JAVA_HOME=/opt/sun-java2-8.0/; mvn clean install -f pom-sync.xml -Doperation=pull

  1. NOTE: if your Jenkins/Hudson server runs on https, must first import its certificate or you may get this error:

    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    1. AS USER (with Firefox):

      Browse to https://jenkins.mw.lab.eng.bos.redhat.com/hudson/ & accept the cert. Log in using kerberos login.

      Menu/Edit > Preferences > Advanced > Certificates/Encryption > View Certificates > Servers > find jenkins cert > Export to file /tmp/jenkins.mw.lab.eng.bos.redhat.com
    2. AS ROOT (default password is "changeit"), import the cert into your cacerts keystore:

      /opt/sun-java2-8.0/jre/bin/keytool -list -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts | grep jenkins
      # (if you need to replace a cert, delete the old one first)
      /opt/sun-java2-8.0/jre/bin/keytool -delete -alias jenkins.qa -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts
      /opt/sun-java2-8.0/jre/bin/keytool -import -alias jenkins.qa -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts -file /tmp/jenkins.mw.lab.eng.bos.redhat.com
      /opt/sun-java2-8.0/jre/bin/keytool -list -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts | grep jenkins
    3. Or, to apply this change to ALL your existing JDKs, you can run this script AS ROOT after exporting your cert:

      #!/bin/bash
      if [[ ! $1 ]]; then echo "Usage: $0 /path/to/cacert.to.import.cert"; exit; fi
      cert=$1
      echo "Your cacert password is probably 'changeit', unless you changed it."
      for k in `whereis keytool | sort`; do
          if [[ -x ${k} ]] && [[ ! -L ${k} ]]; then
              d=${k%/bin/*}
              echo "Loading cert into $d ..."
              ${k} -delete -alias jenkins.qa -keystore ${d}/jre/lib/security/cacerts
              ${k} -import -alias jenkins.qa -keystore ${d}/jre/lib/security/cacerts -file ${cert}
              ${k} -list -keystore ${d}/jre/lib/security/cacerts | grep -A1 jenkins
          fi
      done
  1. Make sure that JAVA_HOME is set to the path where you imported the cert, eg.:

    export JAVA_HOME=/opt/sun-java2-8.0/; mvn clean install -f pom-sync.xml -Doperation=pull
Something went wrong with that request. Please try again.