Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit dea9259

Browse files
committed
Update all URLs from go.cd to gocd.io. Also link to SSL URLs in all places that reference gocd.io
1 parent 0e2f904 commit dea9259

File tree

10 files changed

+39
-35
lines changed

10 files changed

+39
-35
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.3.2
2+
3+
* Changes all URLs from go.cd to gocd.io.
4+
15
# 1.3.1
26

37
* #93 Fix GO_SERVER_URL not being set correctly on windows

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ is to set java version in node attributes (in a role or environment).
3131

3232
### Repository
3333

34-
By default installation source is done from apt or yum repositories from official sources at http://www.go.cd/download/.
34+
By default installation source is done from apt or yum repositories from official sources at https://www.gocd.io/download/.
3535

3636
The **apt** repository can be overriden by changing any these attributes:
3737

38-
* `node['gocd']['repository']['apt']['uri'] = 'https://download.go.cd/'`
38+
* `node['gocd']['repository']['apt']['uri'] = 'https://download.gocd.io/'`
3939
* `node['gocd']['repository']['apt']['components'] = [ '/' ]`
4040
* `node['gocd']['repository']['apt']['distribution'] = ''`
4141
* `node['gocd']['repository']['apt']['keyserver'] = 'pgp.mit.edu'`
42-
* `node['gocd']['repository']['apt']['key'] = 'https://download.go.cd/GOCD-GPG-KEY.asc'`
42+
* `node['gocd']['repository']['apt']['key'] = 'https://download.gocd.io/GOCD-GPG-KEY.asc'`
4343

4444
The **yum** repository can be overriden by changing any these attributes:
4545

46-
* `node['gocd']['repository']['yum']['baseurl'] = 'https://download.go.cd'`
46+
* `node['gocd']['repository']['yum']['baseurl'] = 'https://download.gocd.io'`
4747
* `node['gocd']['repository']['yum']['gpgcheck'] = true`
48-
* `node['gocd']['repository']['yum']['gpgkey'] = 'https://download.go.cd/GOCD-GPG-KEY.asc'`
48+
* `node['gocd']['repository']['yum']['gpgkey'] = 'https://download.gocd.io/GOCD-GPG-KEY.asc'`
4949

5050
#### Experimental channel
5151

@@ -111,7 +111,7 @@ The cookbook provides the following attributes to configure the GoCD agent:
111111
* `node['gocd']['agent']['go_server_url']` - URL of Go server that agent should connect to. It must start with `https://` and end with `/go`. For example `https://localhost:8154/go`.
112112
* `node['gocd']['agent']['daemon']` - Whether the agent should be daemonized. Defaults to `true`.
113113
* `node['gocd']['agent']['vnc']['enabled']` - Whether the agent should start with VNC. (Uses `DISPLAY=:3`). Defaults to `false`.
114-
* `node['gocd']['agent']['autoregister']['key']` - The [agent autoregister](http://www.go.cd/documentation/user/current/advanced_usage/agent_auto_register.html) key. If left alone, will be auto-detected. Defaults to `nil`.
114+
* `node['gocd']['agent']['autoregister']['key']` - The [agent autoregister](https://docs.gocd.io/current/advanced_usage/agent_auto_register.html) key. If left alone, will be auto-detected. Defaults to `nil`.
115115
* `node['gocd']['agent']['autoregister']['environments']` - The environments for the agent. Defaults to `[]`.
116116
* `node['gocd']['agent']['autoregister']['resources']` - The resources for the agent. Defaults to `[]`.
117117
* `node['gocd']['agent']['autoregister']['hostname']` - The agent autoregister hostname. Defaults to `node['fqdn']`.
@@ -210,7 +210,7 @@ end
210210

211211
# Server Specification
212212

213-
When using the cookbook please refer to the [server specification section](https://docs.go.cd/current/installation/system_requirements.html) of the go.cd website
213+
When using the cookbook please refer to the [server specification section](https://docs.gocd.io/current/installation/system_requirements.html) of the GoCD documentation.
214214

215215
# License
216216

attributes/repository.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
default['gocd']['repository']['apt']['components'] = ['/']
1313
default['gocd']['repository']['apt']['distribution'] = ''
1414
default['gocd']['repository']['apt']['keyserver'] = 'pgp.mit.edu'
15-
default['gocd']['repository']['apt']['key'] = 'https://download.go.cd/GOCD-GPG-KEY.asc'
15+
default['gocd']['repository']['apt']['key'] = 'https://download.gocd.io/GOCD-GPG-KEY.asc'
1616

1717
default['gocd']['repository']['yum']['gpgcheck'] = true
18-
default['gocd']['repository']['yum']['gpgkey'] = 'https://download.go.cd/GOCD-GPG-KEY.asc'
18+
default['gocd']['repository']['yum']['gpgkey'] = 'https://download.gocd.io/GOCD-GPG-KEY.asc'
1919

20-
default['gocd']['package_file']['baseurl'] = nil # official - "https://download.go.cd/binaries"
20+
default['gocd']['package_file']['baseurl'] = nil # official - "https://download.gocd.io/binaries"
2121
default['gocd']['agent']['package_file']['url'] = nil # official
2222
default['gocd']['server']['package_file']['url'] = nil # official

libraries/helpers.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def updates_url
8888
# user provided updates url
8989
node['gocd']['updates']['url']
9090
elsif node['gocd']['use_experimental']
91-
'https://update.go.cd/channels/experimental/latest.json'
91+
'https://update.gocd.io/channels/experimental/latest.json'
9292
else
93-
'https://update.go.cd/channels/supported/latest.json'
93+
'https://update.gocd.io/channels/supported/latest.json'
9494
end
9595
end
9696

@@ -165,9 +165,9 @@ def yum_uri
165165
# user provided yum URI
166166
node['gocd']['repository']['yum']['baseurl']
167167
elsif node['gocd']['use_experimental']
168-
'https://download.go.cd/experimental'
168+
'https://download.gocd.io/experimental'
169169
else
170-
'https://download.go.cd'
170+
'https://download.gocd.io'
171171
end
172172
end
173173

@@ -176,9 +176,9 @@ def apt_uri
176176
# user provided apt URI
177177
node['gocd']['repository']['apt']['uri']
178178
elsif node['gocd']['use_experimental']
179-
'https://download.go.cd/experimental'
179+
'https://download.gocd.io/experimental'
180180
else
181-
'https://download.go.cd'
181+
'https://download.gocd.io'
182182
end
183183
end
184184

@@ -188,7 +188,7 @@ def go_baseurl
188188
node['gocd']['package_file']['baseurl']
189189
else
190190
# use official source
191-
"https://download.go.cd/binaries"
191+
"https://download.gocd.io/binaries"
192192
end
193193
end
194194

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description "Installs/Configures Go servers and agents"
33
maintainer "GoCD Contributors"
44
maintainer_email "go-cd@googlegroups.com"
5-
version "1.3.1"
5+
version "1.3.2"
66

77
supports "ubuntu"
88
supports "centos"

spec/go_agent_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
node.normal['gocd']['install_method'] = 'package_file'
208208
end
209209
allow_any_instance_of(Chef::Resource::RemoteFile).to receive(:fetch_content)
210-
.with('https://update.go.cd/channels/supported/latest.json')
210+
.with('https://update.gocd.io/channels/supported/latest.json')
211211
.and_return('{"message": "{\"latest-version\": \"16.2.1-3027\"}"}')
212212
run.converge(described_recipe)
213213
end
@@ -217,7 +217,7 @@
217217
it_behaves_like :agent_recipe_linux
218218
it 'downloads go-agent .deb from remote URL' do
219219
expect(chef_run).to create_remote_file('go-agent-stable.deb').with(
220-
source: 'https://download.go.cd/binaries/16.2.1-3027/deb/go-agent-16.2.1-3027.deb')
220+
source: 'https://download.gocd.io/binaries/16.2.1-3027/deb/go-agent-16.2.1-3027.deb')
221221
end
222222
it 'installs go-agent package from file' do
223223
expect(chef_run).to install_dpkg_package('go-agent')
@@ -242,7 +242,7 @@
242242
it_behaves_like :agent_recipe_linux
243243
it 'downloads go-agent .rpm from remote URL' do
244244
expect(chef_run).to create_remote_file('go-agent-stable.noarch.rpm').with(
245-
source: 'https://download.go.cd/binaries/16.2.1-3027/rpm/go-agent-16.2.1-3027.noarch.rpm')
245+
source: 'https://download.gocd.io/binaries/16.2.1-3027/rpm/go-agent-16.2.1-3027.noarch.rpm')
246246
end
247247
it 'installs go-agent package from file' do
248248
expect(chef_run).to install_rpm_package('go-agent')

spec/go_agent_windows_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
it 'downloads official installer' do
2626
expect(chef_run).to create_remote_file('go-agent-stable-setup.exe').with(
27-
:source => 'https://download.go.cd/binaries/16.2.1-3027/win/go-agent-16.2.1-3027-setup.exe')
27+
:source => 'https://download.gocd.io/binaries/16.2.1-3027/win/go-agent-16.2.1-3027-setup.exe')
2828
end
2929
it 'installs go-agent package' do
3030
expect(chef_run).to install_package('Go Agent')

spec/go_server_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
it_behaves_like :server_recipe
7878
it 'downloads go-server .deb from remote URL' do
7979
expect(chef_run).to create_remote_file('go-server-stable.deb').with(
80-
source: 'https://download.go.cd/binaries/16.2.1-3027/deb/go-server-16.2.1-3027.deb')
80+
source: 'https://download.gocd.io/binaries/16.2.1-3027/deb/go-server-16.2.1-3027.deb')
8181
end
8282
it 'installs go-server package from file' do
8383
expect(chef_run).to install_dpkg_package('go-server')
@@ -98,7 +98,7 @@
9898
it_behaves_like :server_recipe
9999
it 'downloads go-server .rpm from remote URL' do
100100
expect(chef_run).to create_remote_file('go-server-stable.noarch.rpm').with(
101-
source: 'https://download.go.cd/binaries/16.2.1-3027/rpm/go-server-16.2.1-3027.noarch.rpm')
101+
source: 'https://download.gocd.io/binaries/16.2.1-3027/rpm/go-server-16.2.1-3027.noarch.rpm')
102102
end
103103
it 'installs go-server package from file' do
104104
expect(chef_run).to install_rpm_package('go-server')

spec/go_server_windows_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
it 'downloads official installer' do
2525
expect(chef_run).to create_remote_file('go-server-stable-setup.exe').with(
26-
:source => 'https://download.go.cd/binaries/16.2.1-3027/win/go-server-16.2.1-3027-setup.exe')
26+
:source => 'https://download.gocd.io/binaries/16.2.1-3027/win/go-server-16.2.1-3027-setup.exe')
2727
end
2828

2929
it 'installs go-server package' do
@@ -41,14 +41,14 @@
4141
node.normal['gocd']['use_experimental'] = true
4242
end
4343
allow_any_instance_of(Chef::Resource::RemoteFile).to receive(:fetch_content)
44-
.with('https://update.go.cd/channels/experimental/latest.json')
44+
.with('https://update.gocd.io/channels/experimental/latest.json')
4545
.and_return('{"message": "{\"latest-version\": \"20.1.2-12345\"}"}')
4646
run.converge(described_recipe)
4747
end
4848

4949
it 'downloads official experimental installer' do
5050
expect(chef_run).to create_remote_file('go-server-experimental-setup.exe').with(
51-
:source => 'https://download.go.cd/binaries/20.1.2-12345/win/go-server-20.1.2-12345-setup.exe')
51+
:source => 'https://download.gocd.io/binaries/20.1.2-12345/win/go-server-20.1.2-12345-setup.exe')
5252
end
5353
end
5454

spec/shared_examples.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
end
1111
it 'adds gocd apt repository' do
1212
expect(chef_run).to add_apt_repository('gocd').with(
13-
uri: 'https://download.go.cd',
13+
uri: 'https://download.gocd.io',
1414
keyserver: "pgp.mit.edu",
15-
key: "https://download.go.cd/GOCD-GPG-KEY.asc",
15+
key: "https://download.gocd.io/GOCD-GPG-KEY.asc",
1616
components: ['/'])
1717
end
1818
it 'adds gocd experimental apt repository if experimental flag is turned on' do
1919
chef_run.node.set['gocd']['use_experimental'] = true
2020
chef_run.converge(described_recipe)
2121
expect(chef_run).to add_apt_repository('gocd').with(
22-
uri: 'https://download.go.cd/experimental',
22+
uri: 'https://download.gocd.io/experimental',
2323
keyserver: "pgp.mit.edu",
24-
key: "https://download.go.cd/GOCD-GPG-KEY.asc",
24+
key: "https://download.gocd.io/GOCD-GPG-KEY.asc",
2525
components: ['/'])
2626
end
2727
end
@@ -35,20 +35,20 @@
3535
end
3636
it 'adds gocd yum repository' do
3737
expect(chef_run).to create_yum_repository('gocd').with(
38-
baseurl: 'https://download.go.cd',
38+
baseurl: 'https://download.gocd.io',
3939
description: 'GoCD YUM Repository',
4040
gpgcheck: true,
41-
gpgkey: 'https://download.go.cd/GOCD-GPG-KEY.asc'
41+
gpgkey: 'https://download.gocd.io/GOCD-GPG-KEY.asc'
4242
)
4343
end
4444
it 'adds gocd experimental yum repository if experimental flag is turned on' do
4545
chef_run.node.set['gocd']['use_experimental'] = true
4646
chef_run.converge(described_recipe)
4747
expect(chef_run).to create_yum_repository('gocd').with(
48-
baseurl: 'https://download.go.cd/experimental',
48+
baseurl: 'https://download.gocd.io/experimental',
4949
description: 'GoCD YUM Repository',
5050
gpgcheck: true,
51-
gpgkey: 'https://download.go.cd/GOCD-GPG-KEY.asc'
51+
gpgkey: 'https://download.gocd.io/GOCD-GPG-KEY.asc'
5252
)
5353
end
5454
end

0 commit comments

Comments
 (0)