Commit 17786db
Alena Kastsiukavets
#Add -v option to install\update agent command
# Why is this change needed?
Customers should be able to install custom version of the agent if they need to
# How does it address the issue?
Add '-v', '--version' option to install\update command:
1. Windows:
```
powershell.exe -Command Read-S3Object -BucketName aws-codedeploy-us-east-1 -Key releases/codedeploy-agent-1.0.1.1095.msi -File c:\temp\codedeploy-agent.msi
```
test: `sc qdescription codedeployagent`
output: CodeDeploy Host Agent Service v1.0.1.1095
2. Linux:
```
sudo ./install auto -v releases/codedeploy-agent-1.0-1.1095.noarch.rpm
```
test `sudo yum info codedeploy-agent`
output: *Release : 1.1095*
```
sudo ./update auto --version releases/codedeploy-agent-1.0-1.1352.noarch.rpm
```
test `sudo yum info codedeploy-agent`
output: *Release : 1.1352*
3. Ubuntu:
```
sudo ./install auto -v releases/codedeploy-agent_1.0-1.1095_all.deb
```
test `sudo dpkg -s codedeploy-agent`
output: *Version: 1.0-1.1095*
```
sudo ./update auto --version releases/codedeploy-agent_1.0-1.1352_all.deb
```
test `sudo dpkg -s codedeploy-agent`
output: *Version: 1.0-1.1352*
# How was this tested ?
* On instances with the commands above
* Linux:
```
sudo ./update auto
```
test: `sudo yum info codedeploy-agent`
output: *Release : 1.1597*
```
sudo ./install auto
```
test `sudo yum info codedeploy-agent`
output: *Release : 1.1597*
* Ubuntu:
```
sudo ./update auto
```
test: `sudo dpkg -s codedeploy-agent`
output: *Version: 1.0-1.1597*
```
sudo ./install auto
```
test `sudo dpkg -s codedeploy-agent`
output: *Version: 1.0-1.1597*
cr https://code.amazon.com/reviews/CR-200810001 parent e99aa6f commit 17786db
2 files changed
+39
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
150 | 157 | | |
151 | 158 | | |
152 | 159 | | |
| 160 | + | |
| 161 | + | |
153 | 162 | | |
154 | 163 | | |
155 | 164 | | |
| |||
273 | 282 | | |
274 | 283 | | |
275 | 284 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 285 | + | |
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
| |||
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
312 | 332 | | |
313 | 333 | | |
314 | 334 | | |
| |||
347 | 367 | | |
348 | 368 | | |
349 | 369 | | |
350 | | - | |
| 370 | + | |
| 371 | + | |
351 | 372 | | |
352 | 373 | | |
353 | 374 | | |
354 | 375 | | |
355 | 376 | | |
356 | 377 | | |
357 | 378 | | |
358 | | - | |
359 | 379 | | |
360 | 380 | | |
361 | 381 | | |
362 | 382 | | |
363 | 383 | | |
364 | | - | |
| 384 | + | |
365 | 385 | | |
366 | 386 | | |
367 | 387 | | |
| |||
374 | 394 | | |
375 | 395 | | |
376 | 396 | | |
377 | | - | |
378 | 397 | | |
379 | 398 | | |
380 | 399 | | |
381 | 400 | | |
382 | 401 | | |
383 | 402 | | |
384 | | - | |
| 403 | + | |
385 | 404 | | |
386 | 405 | | |
387 | 406 | | |
388 | 407 | | |
389 | 408 | | |
390 | | - | |
| 409 | + | |
391 | 410 | | |
392 | 411 | | |
393 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| |||
550 | 554 | | |
551 | 555 | | |
552 | 556 | | |
553 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
554 | 561 | | |
555 | 562 | | |
556 | 563 | | |
| |||
0 commit comments