I finally got a chance to look into this and I figured out what the issue is. It's specific to the way I was defining the docker environment variable. Below is the relevant env file and docker-compose.yml section. Notice that there are no double quotes around the environment value. Now the upload form appears and any uploaded plugins are auto-loaded after the time specified in the sleep time property. Thanks again Aravind and Varsha for providing feedback. The beta feature documentation <https://docs.go.cd/current/beta/plugin_upload.html> should be updated to show that -Dgo.plugin.upload.enabled=Y is the correct property to set and not -Dgo.plugin.upload.enabled=true. I'll open an Issue for the appropriate github repo.
*betafeatures.env* *GO_SERVER_SYSTEM_PROPERTIES=-Dgo.plugin.upload.enabled=Y -DpluginLocationMonitor.sleepTimeInSecs=3* *docker-compose.yml (snippet)* * env_file:* * - ./env/betafeatures.env* On Tuesday, September 6, 2016 at 1:03:54 AM UTC-7, Aravind SV wrote: > > Jay, > > I've set the property -DpluginLocationMonitor.sleepTimeInSecs=1 while > developing plugins and it has worked well. It makes the server check the > plugins/external directory for new plugins every second. > > Whenever I need to test some change, I just run something like this: > > gradle build && cp -f target/plugin-0.1.jar > /path/to/go-server/plugins/external > > Maybe that's worth a try. > > Cheers, > Aravind > > > On Wed, Aug 24, 2016 at 11:39 PM, Jay <[email protected] <javascript:>> > wrote: > >> Varsha, >> >> Sorry for not providing further feedback about enabling the plugin upload >> feature. I was able to continue and complete my gocd plugin development >> efforts and had to restart the gocd server during each plugin build >> iteration to test out my changes. The upload feature would have saved me >> some time. It would be really great if this upload feature was moved from >> BETA to a released feature since it would provide a great value to those >> developing plugins. >> >> Jay >> >> >> On Thursday, August 11, 2016 at 6:58:32 AM UTC-7, Jay wrote: >>> >>> Thanks for your help. Changing the property value to 'Y' instead of the >>> documented 'true' did enable the upload form. However, the uploads don't >>> work even though there is a message indicating that it added the file >>> successfully. I figured I must need to add the additional property >>> documented on that same page, GO_SERVER_SYSTEM_PROPERTIES to include >>> -DpluginLocationMonitor.sleepTimeInSecs=3. After doing this the upload form >>> no longer displays. So at this point, this still isn't working for me. I >>> didn't spend a whole lot of time tracing through the logs, so I can still >>> do that and provide additional details here later today. >>> >>> On Tuesday, August 9, 2016 at 10:22:26 PM UTC-7, Varsha Varadarajan >>> wrote: >>>> >>>> Hey Jay, >>>> >>>> Can you try doing this instead? >>>> >>>> export GO_SERVER_SYSTEM_PROPERTIES='-Dgo.plugin.upload.enabled=Y' >>>> >>>> or >>>> >>>> wrapper.java.additional.17='-Dgo.plugin.upload.enabled=Y' >>>> >>>> Thanks, >>>> Varsha >>>> >>>> >>>> On Wednesday, 10 August 2016 02:46:14 UTC+5:30, Jay wrote: >>>>> >>>>> Hello, >>>>> >>>>> The advertised functionality at >>>>> https://docs.go.cd/16.4.0/beta/plugin_upload.html does not seem to >>>>> work. I've tried setting the system property in various different ways >>>>> and >>>>> I've verified that the running java process includes it, but I still do >>>>> not >>>>> see a dropdown in the plugins page. It would be a tremendous help for >>>>> plugin testing/development if I could get this to work. Any help would be >>>>> greatly appreciated. >>>>> >>>>> Go version: 16.4.0 >>>>> Platform: gocd/gocd-server:16.4.0 docker image >>>>> >>>>> Jay >>>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "go-cd" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
