*Verification*
Pull this branch and build the plugin:
{noformat} mvn clean package {noformat}
Upload the hpi file into a running aerogear digger instance, select restart jenkins when prompted.
Generate PKCS 12 cert:
{noformat} keytool -genkey -v -keystore testcert.keystore -alias testcert -keyalg RSA -keysize 2048 -validity 10000 keytool -importkeystore -srckeystore testcert.keystore -destkeystore testcert.p12 -deststoretype PKCS12 -srcalias testcert {noformat}
Create OpenShift secret and label for jenkins sync:
{noformat} oc create secret generic testcert --from-file=certificate=./testcert.p12 --from-literal=password=password oc label secret testcert credential.sync.jenkins.openshift.io=true {noformat}
When the label is added you should see a new credential created in Jenkins (<namespace>-<secret name>)
{noformat} May 02, 2018 9:10:29 AM io.fabric8.jenkins.openshiftsync.CredentialsUtils upsertCredential INFO: Created credential testmobilecicd-testcert from Secret NamespaceName{testmobilecicd:testcert} with revision: 272340 {noformat} !testcertcredential.png|thumbnail!
|
|