Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-latest versions of Jenkins, Incorrect Mirror Address #590

Open
akashisama opened this issue Apr 3, 2017 · 0 comments
Open

Non-latest versions of Jenkins, Incorrect Mirror Address #590

akashisama opened this issue Apr 3, 2017 · 0 comments

Comments

@akashisama
Copy link

akashisama commented Apr 3, 2017

Cookbook version

5.0.0

Chef-client version

12.17

Platform Details

Ubuntu 16

Scenario:

Install a non-latest version of Jenkins

Steps to Reproduce:

Set ['jenkins']['master']['version'] to "2.4.1" and ['jenkins']['master']['install_method'] to "war"

Expected Result:

Jenkins 2.4.1 is installed

Actual Result:

A 404 network error is thrown due to the recipe trying access the war file from an incorrect url:
WARN: remote_file[/home/jenkins/jenkins.war] cannot be downloaded from https://updates.jenkins.io/2.41/latest/jenkins.war: 404 "Not Found"

Cause:

Commit 2776afc changed the mirror used for war retrieval from "http://mirrors.jenkins-ci.org" to "https://updates.jenkins.io". The url for the new mirror when downloading specific versions should be "https://updates.jenkins.io/download/war/VERSION/" rather than "https://updates.jenkins.io/VERSION/latest/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants