[ openshift v3 ] build private repository bitbucket using web console ( without oc client )

1.generate openshift-bitbucket-key and openshift-bitbucket-key.pub on local machine.

2.adding Public key to bitbucket.

bitbucket_access_key

3. adding Private key to openshift

openshift_secret

openshift_secret_setup

NOTE : choose Service Account : builder

This should be the same as the following oc command ( ref : https://blog.openshift.com/private-git-repositories-part-5-hosting-repositories-bitbucket/ )

$ ls
LICENSE openshift-bitbucket-key README.md
oc.exe* openshift-bitbucket-key.pub

$ oc secrets new-sshauth openshift-bitbucket-key --ssh-privatekey=openshift-bitbucket-key

$ oc secrets link builder openshift-bitbucket-key

4. Change Git repository to bitbucket

Before

openshift_setting_up_private_git_repository_before

After

openshift_setting_up_private_git_repository_after

5.Click Start build

start_build.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s