Stouts / Stouts.jenkins

Ansible role which manage Jenkins CI
MIT License
41 stars 35 forks source link

jenkins configure plugins failed when using jenkins_prefix #15

Closed cocoon-project closed 9 years ago

cocoon-project commented 9 years ago

in configure.yml

get_url should be as below (missing prefix)

- name: jenkins-configure | Copy jenkins-cli
  get_url: url=http://localhost:{{jenkins_http_port}}{{ jenkins_prefix }}/jnlpJars/jenkins-cli.jar dest={{jenkins_home}}/jenkins-cli.jar
cocoon-project commented 9 years ago

and also

 - name: jenkins-plugins | Install Jenkins plugins.
-  command: java -jar {{jenkins_home}}/jenkins-cli.jar -s http://{{jenkins_http_host}}:{{jenkins_http_port}}/ install-plugin {{item}} creates={{jenkins_home}}/plugins/{{item}}.jpi
+  command: java -jar {{jenkins_home}}/jenkins-cli.jar -s http://{{jenkins_http_host}}:{{jenkins_http_port}}{{jenkins_prefix}} install-plugin {{item}} creates={{jenkins_home}}/plugins/{{item}}.jpi
   with_items: jenkins_plugins
-  ignore_errors: yes
+  ignore_errors: no
   notify: jenkins restart
klen commented 9 years ago

Fixed.