Skip to content

Commit 6fcdf0e

Browse files
authored
Update pipeline.sh
1 parent 6bf46c7 commit 6fcdf0e

File tree

1 file changed

+3
-57
lines changed

1 file changed

+3
-57
lines changed

scripts/pipeline.sh

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
minishift delete
24
minishift start --vm-driver=xhyve --memory=4048 --deploy-registry=true --deploy-router=true
35
oc login $(minishift ip):8443 -u=admin -p=admin
@@ -12,67 +14,11 @@ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/
1214
echo "Deploy Jenkins (without persistence)"
1315
oc new-app jenkins-ephemeral
1416

15-
--> Deploying template "jenkins-ephemeral" in project "openshift"
16-
17-
jenkins-ephemeral
18-
---------
19-
Jenkins service, without persistent storage.
20-
WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing
21-
22-
A Jenkins service has been created in your project. The username/password are admin/do74BWFgyEdyna1r. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.
23-
24-
* With parameters:
25-
* Jenkins Service Name=jenkins
26-
* Jenkins JNLP Service Name=jenkins-jnlp
27-
* Jenkins Password=do74BWFgyEdyna1r # generated
28-
* Memory Limit=512Mi
29-
* Jenkins ImageStream Namespace=openshift
30-
* Jenkins ImageStreamTag=jenkins:latest
31-
32-
--> Creating resources with label app=jenkins-ephemeral ...
33-
route "jenkins" created
34-
deploymentconfig "jenkins" created
35-
serviceaccount "jenkins" created
36-
rolebinding "jenkins_edit" created
37-
service "jenkins-jnlp" created
38-
service "jenkins" created
39-
--> Success
40-
Run 'oc status' to view your app.
41-
4217
echo "Create a new application containing a Jenkins Pipeline"
4318
oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.json
44-
--> Deploying template jenkins-pipeline-example for "https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/samplepipeline.json"
45-
46-
jenkins-pipeline-example
47-
---------
48-
This example showcases the new Jenkins Pipeline integration in OpenShift, which performs continuous integration and deployment right on the platform. The template contains a Jenkinsfile - a definition of a multi-stage CI process - that leverages the underlying OpenShift platform for dynamic and scalable builds. OpenShift integrates the status of your pipeline builds into the web console allowing you to see your entire application lifecycle in a single view.
49-
50-
The Jenkins server is not currently automatically instantiated for you. Please instantiate one of the Jenkins templates to create a Jenkins server for managing your pipeline build configurations.
51-
52-
* With parameters:
53-
* ADMIN_USERNAME=admin11K # generated
54-
* ADMIN_PASSWORD=xeSuFO0f # generated
55-
* MYSQL_USER=userB7J # generated
56-
* MYSQL_PASSWORD=WNJL2IXJ # generated
57-
* MYSQL_DATABASE=root
58-
59-
--> Creating resources with label app=jenkins-pipeline-example ...
60-
buildconfig "sample-pipeline" created
61-
service "frontend" created
62-
route "frontend" created
63-
imagestream "origin-ruby-sample" created
64-
buildconfig "ruby-sample-build" created
65-
deploymentconfig "frontend" created
66-
service "database" created
67-
deploymentconfig "database" created
68-
--> Success
69-
Use 'oc start-build sample-pipeline' to start a build.
70-
Use 'oc start-build ruby-sample-build' to start a build.
71-
Run 'oc status' to view your app.
7219

7320
echo "Start the build defined as Jenkins Job"
7421
oc start-build sample-pipeline
7522

7623
echo "Next you should be able to access the Ruby Sample application after a few minutes"
77-
78-
https://frontend-ci-cd.192.168.64.13.xip.io/
24+
open https://frontend-ci-cd.192.168.64.13.xip.io/

0 commit comments

Comments
 (0)