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

Improve documentation for saltstack jenkins module #43446

Closed
kowsari opened this issue Sep 11, 2017 · 6 comments
Closed

Improve documentation for saltstack jenkins module #43446

kowsari opened this issue Sep 11, 2017 · 6 comments
Labels
info-needed waiting for more info stale
Milestone

Comments

@kowsari
Copy link

kowsari commented Sep 11, 2017

Description of Issue/Question

I am trying to use the salt module for managing jenkins builds and it is not very clear from the documentation how to configure the jenkins module in terms of URL, username, password or token.

Setup

Steps to Reproduce Issue

After I do salt 'salt' jenkins.build_job oncoverse_e2e_tests

I get
ERROR executing 'jenkins.build_job': No Jenkins URL found.

I have tried adding jenkins.url, jenkins.user, jenkins.password to pillar and master config file with no success.

Versions Report

Salt Version:
Salt: 2016.11.6

Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.6.0
docker-py: Not Installed
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 0.9.1
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.3
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.6 (default, Oct 26 2016, 20:30:19)
python-gnupg: Not Installed
PyYAML: 3.10
PyZMQ: 14.0.1
RAET: Not Installed
smmap: 0.8.2
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5

System Versions:
dist: Ubuntu 14.04 trusty
machine: x86_64
release: 3.13.0-107-generic
system: Linux
version: Ubuntu 14.04 trusty

@garethgreenaway
Copy link
Contributor

@kowsari The config items can go in the either pillar or the minion configuration. Can you provide an example of how you have the values stored in pillar?

@garethgreenaway garethgreenaway added this to the Blocked milestone Sep 12, 2017
@garethgreenaway garethgreenaway added the info-needed waiting for more info label Sep 12, 2017
@kowsari
Copy link
Author

kowsari commented Sep 12, 2017

This is my command to start the build
salt 'salt' jenkins.build_job oncoverse_e2e_tests

For the host salt, this is part of my pillar:

jenkins:
 url: http://jenkins.oncoverse.com:8080
 user: admin
 password: blabla

@kowsari
Copy link
Author

kowsari commented Sep 19, 2017

Hi @garethgreenaway any thoughts about the above response? Thanks

@kowsari
Copy link
Author

kowsari commented Oct 3, 2017

@garethgreenaway Hello? Anyone?

@kowsari
Copy link
Author

kowsari commented Nov 6, 2017

To get this to work i had to put the jenkins setting in the /etc/salt/minion file like below
jenkins.url: url
jenkins.user: username
jenkins.password: password

But for some reason this wasnt being picked up from the pillar which would be preferred for us.

@stale
Copy link

stale bot commented Mar 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Mar 1, 2019
@stale stale bot closed this as completed Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed waiting for more info stale
Projects
None yet
Development

No branches or pull requests

2 participants