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

Using Direct URL for plug-ins restarts jenkins with every puppet run #408

Closed
ltutar opened this issue Oct 23, 2015 · 1 comment
Closed

Comments

@ltutar
Copy link

ltutar commented Oct 23, 2015

The documentation is saying:
Note that that when source is specified, the version and plugin_url parameters will have no effect on the plugin retrieval URL.

I have the following yaml:
jenkins::plugin_hash:
'credentials':
version: 1.24
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/credentials.hpi'
'ssh-credentials':
version: 1.11
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/ssh-credentials.hpi'
'scm-api':
version: 0.2
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/scm-api.hpi'
'mailer':
version: 1.15
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/mailer.hpi'
'git':
version: 2.4.0
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/git.hpi'
'git-client':
version: 1.19.0
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/git-client.hpi'
'deployit-plugin':
version: 5.0.0
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/deployit-plugin.hpi'
'job-dsl':
version: 1.39
source: 'file:///vagrant/salt/states/puppetmaster/files/jenkins-external-resources/job-dsl.hpi'

The problem:

credentials.hpi, ssh-credentials.hpi and mailer.hpi are restarting jenkins with every puppet run as shown below:

[root@jenkinsagent ~]# ps -ef | grep -i jenkins
jenkins 5673 1 10 10:11 ? 00:00:20 java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --ajp13Port=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
root 5875 4868 0 10:14 pts/0 00:00:00 grep --color=auto -i jenkins
[root@jenkinsagent ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for jenkinsagent.home
Info: Applying configuration version '1445588078'
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[credentials]/Archive::Download[credentials.hpi]/Exec[download archive credentials.hpi and check sum]/returns: executed successfully
Info: Archive::Download[credentials.hpi]: Scheduling refresh of Service[jenkins]
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[credentials]/File[/var/lib/jenkins/plugins/credentials.hpi]/seluser: seluser changed 'unconfined_u' to 'system_u'
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[ssh-credentials]/Archive::Download[ssh-credentials.hpi]/Exec[download archive ssh-credentials.hpi and check sum]/returns: executed successfully
Info: Archive::Download[ssh-credentials.hpi]: Scheduling refresh of Service[jenkins]
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[ssh-credentials]/File[/var/lib/jenkins/plugins/ssh-credentials.hpi]/seluser: seluser changed 'unconfined_u' to 'system_u'
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[mailer]/Archive::Download[mailer.hpi]/Exec[download archive mailer.hpi and check sum]/returns: executed successfully
Info: Archive::Download[mailer.hpi]: Scheduling refresh of Service[jenkins]
Notice: /Stage[main]/Jenkins::Plugins/Jenkins::Plugin[mailer]/File[/var/lib/jenkins/plugins/mailer.hpi]/seluser: seluser changed 'unconfined_u' to 'system_u'
Info: Class[Jenkins::Plugins]: Scheduling refresh of Class[Jenkins::Service]
Info: Class[Jenkins::Service]: Scheduling refresh of Service[jenkins]
Notice: /Stage[main]/Jenkins::Service/Service[jenkins]/enable: enable changed 'false' to 'true'
Notice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 4 events
Notice: Applied catalog in 3.33 seconds
[root@jenkinsagent ~]# ps -ef | grep -i jenkins
jenkins 6031 1 75 10:14 ? 00:00:09 java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --ajp13Port=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
root 6104 4868 0 10:14 pts/0 00:00:00 grep --color=auto -i jenkins
[root@jenkinsagent ~]#

@ltutar
Copy link
Author

ltutar commented Oct 23, 2015

Found #389
I will close this issue since it is a replica

@rtyler rtyler closed this as completed Oct 23, 2015
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

2 participants