{"action":"reopened","issue":{"url":"https://api.github.com/repos/jenkinsci/configuration-as-code-plugin/issues/520","repository_url":"https://api.github.com/repos/jenkinsci/configuration-as-code-plugin","labels_url":"https://api.github.com/repos/jenkinsci/configuration-as-code-plugin/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/configuration-as-code-plugin/issues/520/comments","events_url":"https://api.github.com/repos/jenkinsci/configuration-as-code-plugin/issues/520/events","html_url":"https://github.com/jenkinsci/configuration-as-code-plugin/issues/520","id":360309063,"node_id":"MDU6SXNzdWUzNjAzMDkwNjM=","number":520,"title":"Infinite restarts after vanilla installation of configuration as code plugin","user":{"login":"sch1itzohr","id":6816382,"node_id":"MDQ6VXNlcjY4MTYzODI=","avatar_url":"https://avatars0.githubusercontent.com/u/6816382?v=4","gravatar_id":"","url":"https://api.github.com/users/sch1itzohr","html_url":"https://github.com/sch1itzohr","followers_url":"https://api.github.com/users/sch1itzohr/followers","following_url":"https://api.github.com/users/sch1itzohr/following{/other_user}","gists_url":"https://api.github.com/users/sch1itzohr/gists{/gist_id}","starred_url":"https://api.github.com/users/sch1itzohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sch1itzohr/subscriptions","organizations_url":"https://api.github.com/users/sch1itzohr/orgs","repos_url":"https://api.github.com/users/sch1itzohr/repos","events_url":"https://api.github.com/users/sch1itzohr/events{/privacy}","received_events_url":"https://api.github.com/users/sch1itzohr/received_events","type":"User","site_admin":false},"labels":[{"id":834893460,"node_id":"MDU6TGFiZWw4MzQ4OTM0NjA=","url":"https://api.github.com/repos/jenkinsci/configuration-as-code-plugin/labels/bug","name":"bug","color":"D73A4A","default":true}],"state":"open","locked":false,"assignee":{"login":"ndeloof","id":132757,"node_id":"MDQ6VXNlcjEzMjc1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/132757?v=4","gravatar_id":"","url":"https://api.github.com/users/ndeloof","html_url":"https://github.com/ndeloof","followers_url":"https://api.github.com/users/ndeloof/followers","following_url":"https://api.github.com/users/ndeloof/following{/other_user}","gists_url":"https://api.github.com/users/ndeloof/gists{/gist_id}","starred_url":"https://api.github.com/users/ndeloof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndeloof/subscriptions","organizations_url":"https://api.github.com/users/ndeloof/orgs","repos_url":"https://api.github.com/users/ndeloof/repos","events_url":"https://api.github.com/users/ndeloof/events{/privacy}","received_events_url":"https://api.github.com/users/ndeloof/received_events","type":"User","site_admin":false},"assignees":[{"login":"ndeloof","id":132757,"node_id":"MDQ6VXNlcjEzMjc1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/132757?v=4","gravatar_id":"","url":"https://api.github.com/users/ndeloof","html_url":"https://github.com/ndeloof","followers_url":"https://api.github.com/users/ndeloof/followers","following_url":"https://api.github.com/users/ndeloof/following{/other_user}","gists_url":"https://api.github.com/users/ndeloof/gists{/gist_id}","starred_url":"https://api.github.com/users/ndeloof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndeloof/subscriptions","organizations_url":"https://api.github.com/users/ndeloof/orgs","repos_url":"https://api.github.com/users/ndeloof/repos","events_url":"https://api.github.com/users/ndeloof/events{/privacy}","received_events_url":"https://api.github.com/users/ndeloof/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-09-14T13:39:31Z","updated_at":"2018-10-02T13:19:00Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI decided to research possible cons of this plugin for spinning up the jenkins instance from scratch in minutes, but faced problem that after installation of plugins and restart by configuration plugin it goes in infinite loop.\r\nMy setup:\r\njava version 1.8.0_181\r\njenkins version 2.121.1\r\nconfiguration-as-code plugin: 1.0\r\n\r\nJenkins output. This keeps appe\r\n```\r\nRunning from: /home/thisguy/.m2/repository/org/jenkins-ci/main/jenkins-war/2.121.1/jenkins-war-2.121.1.war\r\nwebroot: EnvVars.masterEnvVars.get(\"JENKINS_HOME\")\r\nSep 14, 2018 4:23:45 PM org.eclipse.jetty.util.log.Log initialized\r\nINFO: Logging initialized @356ms to org.eclipse.jetty.util.log.JavaUtilLog\r\nSep 14, 2018 4:23:45 PM winstone.Logger logInternal\r\nINFO: Beginning extraction from war file\r\nSep 14, 2018 4:23:45 PM org.eclipse.jetty.server.handler.ContextHandler setContextPath\r\nWARNING: Empty contextPath\r\nSep 14, 2018 4:23:46 PM org.eclipse.jetty.server.Server doStart\r\nINFO: jetty-9.4.z-SNAPSHOT, build timestamp: 2017-11-22T00:27:37+03:00, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8\r\nSep 14, 2018 4:23:46 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet\r\nINFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet\r\nSep 14, 2018 4:23:46 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart\r\nINFO: DefaultSessionIdManager workerName=node0\r\nSep 14, 2018 4:23:46 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart\r\nINFO: No SessionScavenger set, using defaults\r\nSep 14, 2018 4:23:46 PM org.eclipse.jetty.server.session.HouseKeeper startScavenging\r\nINFO: Scavenging every 600000ms\r\nJenkins home directory: /home/thisguy/Work/jenkins_home found at: EnvVars.masterEnvVars.get(\"JENKINS_HOME\")\r\nSep 14, 2018 4:23:47 PM org.eclipse.jetty.server.handler.ContextHandler doStart\r\nINFO: Started w.@57bc27f5{/,file:///home/thisguy/Work/jenkins_home/war/,AVAILABLE}{/home/thisguy/Work/jenkins_home/war}\r\nSep 14, 2018 4:23:47 PM org.eclipse.jetty.server.AbstractConnector doStart\r\nINFO: Started ServerConnector@6f15d60e{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}\r\nSep 14, 2018 4:23:47 PM org.eclipse.jetty.server.Server doStart\r\nINFO: Started @1594ms\r\nSep 14, 2018 4:23:47 PM winstone.Logger logInternal\r\nINFO: Winstone Servlet Engine v4.0 running: controlPort=disabled\r\nSep 14, 2018 4:23:48 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Started initialization\r\nSep 14, 2018 4:23:48 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Listed all plugins\r\nSep 14, 2018 4:23:51 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Prepared all plugins\r\nSep 14, 2018 4:23:51 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Started all plugins\r\nSep 14, 2018 4:23:51 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Augmented all extensions\r\nSep 14, 2018 4:23:52 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor\r\nINFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.key = FOO\r\nSep 14, 2018 4:23:52 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor\r\nINFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.value = BAR\r\nSep 14, 2018 4:23:52 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor\r\nINFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty.env = [{}]\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure\r\nINFO: Setting hudson.model.Hudson@94e0eb4.systemMessage = Jenkins configured automatically by Jenkins Configuration as Code Plugin\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure\r\nINFO: Setting hudson.model.Hudson@94e0eb4.mode = NORMAL\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure\r\nINFO: Setting hudson.model.Hudson@94e0eb4.numExecutors = 2\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure\r\nINFO: Setting hudson.model.Hudson@94e0eb4.scmCheckoutRetryCount = 2\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor\r\nINFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.key = FOO\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor\r\nINFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.value = BAR\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor\r\nINFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty.env = [{}]\r\nSep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure\r\nINFO: Setting hudson.model.Hudson@94e0eb4.globalNodeProperties = [hudson.slaves.EnvironmentVariablesNodeProperty@36b0b768]\r\nSep 14, 2018 4:23:56 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Loaded all jobs\r\nSep 14, 2018 4:23:56 PM hudson.model.AsyncPeriodicWork$1 run\r\nINFO: Started Download metadata\r\nSep 14, 2018 4:23:56 PM hudson.model.AsyncPeriodicWork$1 run\r\nINFO: Finished Download metadata. 49 ms\r\nSep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh\r\nINFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@61067bc3: display name [Root WebApplicationContext]; startup date [Fri Sep 14 16:23:57 MSK 2018]; root of context hierarchy\r\nSep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory\r\nINFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@61067bc3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6dd81d9\r\nSep 14, 2018 4:23:57 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons\r\nINFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6dd81d9: defining beans [authenticationManager]; root of factory hierarchy\r\nSep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh\r\nINFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@669d05e0: display name [Root WebApplicationContext]; startup date [Fri Sep 14 16:23:57 MSK 2018]; root of context hierarchy\r\nSep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory\r\nINFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@669d05e0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@2dedd909\r\nSep 14, 2018 4:23:57 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons\r\nINFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2dedd909: defining beans [filter,legacy]; root of factory hierarchy\r\nSep 14, 2018 4:23:57 PM jenkins.InitReactorRunner$1 onAttained\r\nINFO: Completed initialization\r\nSep 14, 2018 4:23:57 PM hudson.WebAppMain$3 run\r\nINFO: Jenkins is fully up and running\r\nSep 14, 2018 4:24:01 PM jenkins.model.Jenkins$23 run\r\nSEVERE: Restarting VM as requested by SYSTEM\r\nSep 14, 2018 4:24:01 PM jenkins.model.Jenkins cleanUp\r\nINFO: Stopping Jenkins\r\nSep 14, 2018 4:24:01 PM jenkins.model.Jenkins$19 onAttained\r\nINFO: Started termination\r\nSep 14, 2018 4:24:01 PM jenkins.model.Jenkins$19 onAttained\r\nINFO: Completed termination\r\nSep 14, 2018 4:24:01 PM jenkins.model.Jenkins _cleanUpDisconnectComputers\r\nINFO: Starting node disconnection\r\nSep 14, 2018 4:24:02 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager\r\nINFO: Stopping plugin manager\r\nSep 14, 2018 4:24:02 PM jenkins.model.Jenkins _cleanUpPersistQueue\r\nINFO: Persisting build queue\r\nSep 14, 2018 4:24:02 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects\r\nINFO: Waiting for node disconnection completion\r\nSep 14, 2018 4:24:02 PM jenkins.model.Jenkins cleanUp\r\nINFO: Jenkins stopped\r\n```\r\nEnvironment:\r\nCASC_JENKINS_CONFIG=~/Work/jenkins_cac/configs/jenkins.yaml\r\nConfiguration as code configuration file content:\r\n```\r\nplugins:\r\n  sites:\r\n  - id: \"default\"\r\n    url: \"https://ftp-nyc.osuosl.org/pub/jenkins/updates/current/update-center.json\"\r\n  required:\r\n    ldap: \"latest\"\r\n    git: \"3.9.0\"\r\njenkins:\r\n  systemMessage: \"Jenkins configured automatically by Jenkins Configuration as Code Plugin\\n\\n\"\r\n  numExecutors: 2\r\n  scmCheckoutRetryCount: 2\r\n  mode: NORMAL\r\n  globalNodeProperties:\r\n    - envVars:\r\n        env:\r\n          - key: WHAT\r\n            value: EVER\r\n```\r\nJenkins running command:\r\n`java -Duser.home=~/Work/jenkins_home -Dhudson.model.DownloadService.noSignatureCheck=true -jar /home/ashageev/Work/jenkins.war`"}}
{"actor":{"display_login":"sch1itzohr"}}