Verification Pull this branch and build the plugin:
Upload the hpi file into a running aerogear digger instance, select restart jenkins when prompted. Generate PKCS 12 cert:
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
|
Create OpenShift secret and label for jenkins sync:
oc create secret generic testcert --from-file=certificate=./testcert.p12 --from-literal=password=password |
oc label secret testcert credential.sync.jenkins.openshift.io=true
|
When the label is added you should see a new credential created in Jenkins (<namespace>-<secret name>)
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
|
|