Skip to content

Commit

Permalink
switch to generated password for jenkins service
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Aug 2, 2016
1 parent 074e084 commit 72acf08
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
4 changes: 3 additions & 1 deletion examples/jenkins/jenkins-ephemeral-template.json
Expand Up @@ -10,6 +10,7 @@
"tags": "instant-app,jenkins"
}
},
"message": "A Jenkins service has been created in your project. The username/password are admin/${JENKINS_PASSWORD}.",
"objects": [
{
"kind": "Route",
Expand Down Expand Up @@ -172,7 +173,8 @@
"displayName": "Jenkins Password",
"description": "Password for the Jenkins 'admin' user.",
"generate": "expression",
"value": "password"
"from": "[a-zA-Z0-9]{16}",
"required": true
},
{
"name": "MEMORY_LIMIT",
Expand Down
4 changes: 3 additions & 1 deletion examples/jenkins/jenkins-persistent-template.json
Expand Up @@ -10,6 +10,7 @@
"tags": "instant-app,jenkins"
}
},
"message": "A Jenkins service has been created in your project. The username/password are admin/${JENKINS_PASSWORD}.",
"objects": [
{
"kind": "Route",
Expand Down Expand Up @@ -189,7 +190,8 @@
"displayName": "Jenkins Password",
"description": "Password for the Jenkins 'admin' user.",
"generate": "expression",
"value": "password"
"from": "[a-zA-Z0-9]{16}",
"required": true
},
{
"name": "MEMORY_LIMIT",
Expand Down
10 changes: 9 additions & 1 deletion examples/jenkins/pipeline/README.md
Expand Up @@ -40,6 +40,14 @@ jenkins template represented by jenkinstemplate.json by running these commands a
You should not need to access the jenkins console for anything, but if you want to configure settings or watch the execution,
here are the steps to do so:

First you must determine the jenkins password which was randomly generated for you:

$ oc env dc/jenkins --list | grep JENKINS_PASSWORD

The value will appear as:

$ JENKINS_PASSWORD=faUXMOFUhRYXO2Gx

If you have a router running (`oc cluster up` provides one), run:

$ oc get route
Expand All @@ -48,7 +56,7 @@ jenkins template represented by jenkinstemplate.json by running these commands a

If you do not have a router, you can access jenkins directly via the service ip. Determine the jenkins service ip ("oc get svc") and go to it in your browser on port 80. Do not confuse it with the jenkins-jnlp service.

The login/password are `admin/password`.
Login with the user name is `admin` and the password as determined above.

6. Launch a new build

Expand Down
6 changes: 4 additions & 2 deletions examples/jenkins/pipeline/jenkinstemplate.json
Expand Up @@ -10,6 +10,7 @@
"tags": "instant-app,jenkins"
}
},
"message": "A Jenkins service has been created in your project. The username/password are admin/${JENKINS_PASSWORD}.",
"objects": [
{
"kind": "Route",
Expand Down Expand Up @@ -243,9 +244,10 @@
{
"name": "JENKINS_PASSWORD",
"displayName": "Jenkins Password",
"description": "Password for the Jenkins user.",
"description": "Password for the Jenkins 'admin' user.",
"generate": "expression",
"value": "password"
"from": "[a-zA-Z0-9]{16}",
"required": true
}
],
"labels": {
Expand Down
6 changes: 4 additions & 2 deletions pkg/bootstrap/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72acf08

Please sign in to comment.