Skip to content

Commit 51264c5

Browse files
committed
Fixed links, thanks Cloudbees
Jenkins website changed URLs, updated it here.
1 parent 0072969 commit 51264c5

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

_posts/2016-9-05-Jenkins CCJPE Operations Center.markdown

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ entire Jenkins environment. It's also what we'll be setting up in a few
5656
minutes.
5757

5858
Next, we have **client masters**. A client master is just a normal Jenkins master
59-
that we've joined to our Operations center cluster for management purposes.
60-
These masters can then use normal slaves, shared slaves, or a shared cloud.
59+
that we've joined to our Operations center cluster for management purposes.
60+
These masters can then use normal slaves, shared slaves, or a shared cloud.
6161

6262
**Shared slaves** are exactly what they sound like, slave nodes that are available
63-
for any master to use.
63+
for any master to use.
6464

6565
A **shared cloud** is used to spin up temporary slaves
6666
when demand exceeds what's available from the shared slaves.
@@ -81,19 +81,19 @@ Setting up CJOC
8181
Alright, that's enough terminology for now. Let's go ahead and create our
8282
Operations Center Server! First, we'll start out with a fresh Ubuntu 14.04
8383
server. If you'd like to cheat a bit, you can use our cloud config file [HERE](https://www.devopslibrary.com/scripts/cjoc.yaml),
84-
which configures everything for you automatically.
84+
which configures everything for you automatically.
8585

8686
If you'd like to do it by hand, the first thing that we need to do is to add all
8787
of the keys and repositories for installing Jenkins & Java. Just copy and paste
8888
the following lines:
8989

9090
``` bash
9191
add-apt-repository ppa:webupd8team/java -y
92-
wget -q -O - http://downloads.cloudbees.com/cjoc/latest/debian/cloudbees.com.key | sudo apt-key add -
93-
echo deb http://downloads.cloudbees.com/cjoc/latest/debian binary/ | sudo tee /etc/apt/sources.list.d/jenkins-oc.list
92+
wget -q -O - http://nectar-downloads.cloudbees.com/jenkins-operations-center/1.625/debian/cloudbees.com.key | sudo apt-key add -
93+
echo deb http://nectar-downloads.cloudbees.com/jenkins-operations-center/1.625/debian binary/ | sudo tee /etc/apt/sources.list.d/jenkins-oc.list
9494
```
9595

96-
Then run an ```apt-get update```.
96+
Then run an ```apt-get update```.
9797

9898
Once that finishes, let's install Java by running:
9999

@@ -112,7 +112,7 @@ Configuration
112112
-------------
113113
Nice job!! That's all that we needed to do to setup CJOC. Now let's open up a
114114
web browser and go to the IP address of the VM, on port 8888. You will need to
115-
sign up for a trial license if you don' have an enterprise license yet.
115+
sign up for a trial license if you don't have an enterprise license yet.
116116

117117
![License](/images/license.png)
118118

@@ -137,14 +137,14 @@ select "Client Master" for the item type. On the configuration page, we'll
137137
stick with the defaults. Before we move on though, let's talk about what a few
138138
of the settings are used for.
139139

140-
The "On-master executors" setting is used to force a set number of executors.
140+
The "On-master executors" setting is used to force a set number of executors.
141141
From a security and performance perspective, we highly recommend checking the
142142
"Enforce" box and setting this to zero, as every job should be running on
143143
slaves, not masters.
144144

145145
Another useful setting is the "Master Owner" configuration. This lets you
146146
specify an email address or a list of addresses that are notified anytime the
147-
master goes offline.
147+
master goes offline.
148148

149149
The licensing section is helpful is well, as you can have operations center take
150150
care of the licensing on your masters, as well as telling them to use a specific
@@ -154,7 +154,7 @@ on Windows. Alright, go ahead and click save.
154154
On the next page, type in the URL of the Jenkins master, then click "Push
155155
configuration". Within a minute or so, you'll be redirected to the master
156156
you're trying to add. Now click "Join Operations Center" to complete the
157-
process.
157+
process.
158158

159159
Perfect!! Go ahead and go through the same steps to add the other one. Once
160160
you're finished, the CJOC should look something like this. Great job! At this
@@ -166,7 +166,7 @@ Shared Configurations
166166
First, let's talk about "Shared Configurations". You know how on each master,
167167
there's a "Configure System" section with a ton of settings? A "Shared
168168
Configuration" is used to configure those settings once, and share them across
169-
your masters.
169+
your masters.
170170

171171
Let's try it out. We'll set up a shared configuration that ensures the latest
172172
version of Java is installed on all of our masters. Click "New Item", type in a
@@ -183,24 +183,24 @@ config page.
183183
Shared Slaves
184184
-------------
185185
Alright, next we have "Shared Slaves". Don’t worry, they’re super easy to
186-
setup, and if you’ve already set up a slave before feel free to skip ahead.
186+
setup, and if you’ve already set up a slave before feel free to skip ahead.
187187
Basically we just follow the same steps that we'd normally do to set up a slave,
188-
but do it from the CJOC.
188+
but do it from the CJOC.
189189

190190
[Jenkins Slave01 Cloud Config](https://www.devopslibrary.com/scripts/slave01.yaml)
191191

192192
Just like everything else so far, the first step is to go to “New Item”. Next,
193193
name the agent, and select “Shared Slave” as the item type. Alright, now that
194194
we’re on the configuration page, a lot of these settings are environment
195-
specific. We tend to use one executor per core, but it’s really up to you.
195+
specific. We tend to use one executor per core, but it’s really up to you.
196196

197-
For the FS root, make you’ve already created the directory on your slave server.
197+
For the FS root, make you’ve already created the directory on your slave server.
198198
If you use our slave.yaml cloud configuration, be sure to specify /Jenkins as
199-
that’s the directory we typically use.
199+
that’s the directory we typically use.
200200

201201
After you’ve added a host and credentials, click “Save”. Great job!!! We now
202202
have a slave that any of our masters can use. We do have a bit more to cover,
203-
but if you’d like to take a break to try it out go ahead!
203+
but if you’d like to take a break to try it out go ahead!
204204

205205
Cluster Operations
206206
------------------
@@ -211,10 +211,10 @@ A “Cluster Operation” is a new item type that lets you perform maintenance o
211211
variety of items, including client masters and update centers. They’re not
212212
nearly as complicated as they sound, but they are pretty powerful! Let’s try
213213
setting one up for restarting all of our masters. Click “New Item”, name it
214-
“Restart All Masters” and select “Cluster Operations” as the item type.
214+
“Restart All Masters” and select “Cluster Operations” as the item type.
215215

216216
Alright, there are three important parts of an “Operation”. The first is the
217-
type of operation, which can be either “Client Master” or “Update Center”.
217+
type of operation, which can be either “Client Master” or “Update Center”.
218218
Because the operation we’re setting up affects masters, select “Client Master”.
219219

220220
Secondly, we need to choose how to target the masters. We’ll select “From
@@ -223,40 +223,40 @@ specify a filter if you’d like to get a bit more granular than the list of
223223
target sources.
224224

225225
Third, we need to specify what steps the operation should actually take. For
226-
this operation, select “Restart Now”, then save the operation.
226+
this operation, select “Restart Now”, then save the operation.
227227

228228
Great job!! You’ve successfully set up a cluster operation. If you’d like,
229-
you can run it now and both of our masters will be restarted immediately.
229+
you can run it now and both of our masters will be restarted immediately.
230230

231-
Pretty cool huh?
231+
Pretty cool huh?
232232

233233
Update Centers
234234
--------------
235235
Well, we’re finally almost finished, we have one final topic to cover, Update
236236
Centers! An Update center is created the same way everything else was created,
237237
just go to New Item, name the Update center, and select “Update Center” as the
238238
job type. You’ll then need to select a plugin versioning strategy, signature
239-
provider, upstream source, and any maintenance tasks that you’d like.
239+
provider, upstream source, and any maintenance tasks that you’d like.
240240

241-
The plugin versioning strategy can be set to explicit or implicit publishing.
241+
The plugin versioning strategy can be set to explicit or implicit publishing.
242242
Explicit means that the update center won’t publish any versions of a plugin
243243
until the administrator specifically chooses a version, while implicit defaults
244-
to publishing the latest version of each plugin.
244+
to publishing the latest version of each plugin.
245245

246246
You can usually just leave the signature provider as is. For the upstream
247247
source we recommend selecting “Jenkins Enterprise by Cloudbees”, unless there’s
248-
a specific reason to include experimental plugins. Go ahead and hit save.
248+
a specific reason to include experimental plugins. Go ahead and hit save.
249249

250250
That’s it for the update center, but do note, you will have to configure the
251251
masters to point to the update center. Once that’s complete you’ll never have
252-
to worry about someone installing a plugin that hasn’t already been approved.
252+
to worry about someone installing a plugin that hasn’t already been approved.
253253
You can do it manually, or by using the update center installer plugin.
254254

255255
Conclusion
256256
----------
257257
Well, that was a pretty long lesson! We covered a ton of material, great job
258258
following along! We set up a Jenkins Operations Center, two masters, a shared
259-
slave, a cluster operation, and an update center, all in a single lesson!
259+
slave, a cluster operation, and an update center, all in a single lesson!
260260

261261
Thank you so much for watching!
262262

@@ -282,6 +282,6 @@ for the DevOps community.
282282

283283
Thanks for Watching!
284284
--------------------
285-
[Subscribe to our YouTube channel](https://www.youtube.com/channel/UCOnioSzUZS-ZqsRnf38V2nA?sub_confirmation=1) or follow [DevOpsLibrary on Twitter](https://twitter.com/intent/user?screen_name=devopslibrary).
285+
[Subscribe to our YouTube channel](https://www.youtube.com/channel/UCOnioSzUZS-ZqsRnf38V2nA?sub_confirmation=1) or follow [DevOpsLibrary on Twitter](https://twitter.com/intent/user?screen_name=devopslibrary).
286286

287287
{% include subscribe.html %}

scripts/cjoc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ runcmd:
66
- add-apt-repository ppa:webupd8team/java -y
77
- echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
88
- echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
9-
- wget -q -O - http://downloads.cloudbees.com/cjoc/latest/debian/cloudbees.com.key | sudo apt-key add -
10-
- echo deb http://downloads.cloudbees.com/cjoc/latest/debian binary/ | sudo tee /etc/apt/sources.list.d/jenkins-oc.list
9+
- wget -q -O - http://nectar-downloads.cloudbees.com/jenkins-operations-center/1.625/debian/cloudbees.com.key | sudo apt-key add -
10+
- echo deb http://nectar-downloads.cloudbees.com/jenkins-operations-center/1.625/debian binary/ | sudo tee /etc/apt/sources.list.d/jenkins-oc.list
1111
- apt-get update
1212
- apt-get install oracle-java8-installer -y
1313
- apt-get install jenkins-oc -y

0 commit comments

Comments
 (0)