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

cli option broken w/ jenkins 1.563 on ubuntu precise #135

Closed
nicobrevin opened this issue May 18, 2014 · 1 comment · Fixed by #183
Closed

cli option broken w/ jenkins 1.563 on ubuntu precise #135

nicobrevin opened this issue May 18, 2014 · 1 comment · Fixed by #183
Milestone

Comments

@nicobrevin
Copy link

Using a simple manifest like:

class { 'jenkins':
    cli                => true,
}

I get

err: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]/returns: change from notrun to 0 failed: unzip /usr/lib/jenkins/jenkins.war WEB-INF/jenkins-cli.jar && mv WEB-INF/jenkins-cli.jar /usr/lib/jenkins/jenkins-cli.jar && rm -rf WEB-INF returned 9 instead of one of [0] at /tmp/vagrant-puppet/modules-0/jenkins/manifests/cli.pp:22

And it looks like this is because the war is in a different location (/usr/share/jenkins).

Package information:

vagrant@tcomdigi-jenkins:/var/lib/jenkins$ apt-cache policy jenkins
jenkins:
  Installed: 1.563
  Candidate: 1.563
  Version table:
 *** 1.563 0
        500 http://pkg.jenkins-ci.org/debian/ binary/ Packages
        100 /var/lib/dpkg/status

I'll see if I can come up with a patch for you.

@nicobrevin
Copy link
Author

This fixes it for me

https://gist.github.com/nicobrevin/9b01b1b5a36859158217

Like it says in the patch, it needs a version constraint, as I'm guessing this change was introduced between when the module was written and now. I couldn't see where this happened on the changelog - http://jenkins-ci.org/changelog

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

Successfully merging a pull request may close this issue.

2 participants