You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to upgrade a particular existing plugin within the plugin dsl but for some reason if that file already exists it doesn't download it, it used to work when using vesion 1.3.0 but with the latest one (1.7.0) it doesn't work as expected. See the below details about the setup, and what's the output of the puppet run:
Current setup:
archive 1.2.0
jenkins 1.7.0
debian 8
Puppet code:
jenkins::plugin { 'build-failure-analyzer' : version => '1.17.2' }
root@jenkins-bcnsharedstudio:/var/lib/jenkins/plugins# rm -rf build-failure-analyzer*
root@jenkins-bcnsharedstudio:/var/lib/jenkins/plugins# ls -l build-failure-analyzer*
ls: cannot access build-failure-analyzer*: No such file or directory
Running puppet again
root@jenkins-bcnsharedstudio:/var/lib/jenkins/plugins# puppet agent -t --environment jenkins_module_plugins
Info: Using configured environment 'jenkins_module_plugins'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for jenkins-bcnsharedstudio
Info: Applying configuration version '1487594485'
Notice: /Stage[main]/Profile::Defaults::Os::Linux/Package[rubygems]/ensure: created
Notice: /Stage[main]/King_jenkins::Plugin_baseline/Jenkins::Plugin[build-failure-analyzer]/Archive[build-failure-analyzer.hpi]/ensure: download archive from https://updates.jenkins-ci.org/download/plugins/build-failure-analyzer/1.17.2/build-failure-analyzer.hpi to /var/lib/jenkins/plugins/build-failure-analyzer.hpi without cleanup
Info: /Stage[main]/King_jenkins::Plugin_baseline/Jenkins::Plugin[build-failure-analyzer]/Archive[build-failure-analyzer.hpi]: Scheduling refresh of Service[jenkins]
Notice: /Stage[main]/King_jenkins::Plugin_baseline/Jenkins::Plugin[build-failure-analyzer]/File[/var/lib/jenkins/plugins/build-failure-analyzer.hpi]/owner: owner changed 'root' to 'jenkins'
Notice: /Stage[main]/King_jenkins::Plugin_baseline/Jenkins::Plugin[build-failure-analyzer]/File[/var/lib/jenkins/plugins/build-failure-analyzer.hpi]/group: group changed 'root' to 'jenkins'
Notice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Jenkins/Jenkins::Cli::Exec[set_num_executors]/Exec[set_num_executors]/returns: executed successfully
Info: /Stage[main]/Jenkins/Jenkins::Cli::Exec[set_num_executors]/Exec[set_num_executors]: Scheduling refresh of Class[Jenkins::Cli::Reload]
Info: Class[Jenkins::Cli::Reload]: Scheduling refresh of Exec[reload-jenkins]
Notice: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Triggered 'refresh' from 1 events
Notice: Applied catalog in 39.34 seconds
Current plugin version
root@jenkins-bcnsharedstudio:/var/lib/jenkins/plugins# ls -l build-failure-analyzer*
-rw-r--r-- 1 jenkins jenkins 3452956 Oct 25 17:01 build-failure-analyzer.hpi
build-failure-analyzer:
total 16
drwxr-xr-x 3 jenkins jenkins 4096 Feb 20 04:51 help
drwxr-xr-x 7 jenkins jenkins 4096 Feb 20 04:51 images
drwxr-xr-x 3 jenkins jenkins 4096 Oct 21 11:54 META-INF
drwxr-xr-x 3 jenkins jenkins 4096 Oct 21 11:54 WEB-INF
root@jenkins-bcnsharedstudio:/var/lib/jenkins/plugins# cat build-failure-analyzer/META-INF/MANIFEST.MF | grep -i plugin-version
Plugin-Version: 1.17.2
I was guessing maybe the archive resource was somehow caching that file, but the creates flag is not enabled:
Hi there,
I'm trying to upgrade a particular existing plugin within the plugin dsl but for some reason if that file already exists it doesn't download it, it used to work when using vesion 1.3.0 but with the latest one (1.7.0) it doesn't work as expected. See the below details about the setup, and what's the output of the puppet run:
Current setup:
Puppet code:
Current jenkins configuration:
root@jenkins-bcnsharedstudio:/var/lib/jenkins/plugins# cat build-failure-analyzer/META-INF/MANIFEST.MF | grep -i plugin-version Plugin-Version: 1.13.0
Current puppet log output with some verbose
So, basically If I remove that particular file then it gets downloaded accordingly:
I was guessing maybe the archive resource was somehow caching that file, but the creates flag is not enabled:
Any ideas?
Cheers
The text was updated successfully, but these errors were encountered: