Issues with deploying JIRA Plugin to WebSudo instance

Issue #11 wontfix
Michael Tokar created an issue

Trying to use the plugin to deploy to our internal QA server for EACJ, which has WebSudo enabled. I get this log message from Bamboo:

simple  15-Jul-2013 08:14:06    Starting task 'QA-EACJ' of type 'com.atlassian.bamboo.plugins.deploy.continuous-plugin-deployment:jiradeploy'
simple  15-Jul-2013 08:14:06    Contacting https://extranet-jira.stg.internal.atlassian.com/jira/secure/admin/WebSudoAuthenticate.jspa?os_authType=basic to authenticate a secure Administrator session.
simple  15-Jul-2013 08:14:06    HTTP/1.1 302 Moved Temporarily
simple  15-Jul-2013 08:14:06    Contacting https://extranet-jira.stg.internal.atlassian.com/jira/rest/plugins/1.0/?_=-3905318106340114815 to obtain an XSRF token for plugin upload.
simple  15-Jul-2013 08:14:06    HTTP/1.1 200 OK
simple  15-Jul-2013 08:14:06    Contacting https://extranet-jira.stg.internal.atlassian.com/jira/ to upload plugin.
simple  15-Jul-2013 08:14:07    HTTP/1.1 401 Unauthorized
error   15-Jul-2013 08:14:07    Unexpected response during plugin upload: 401
error   15-Jul-2013 08:14:08    Error occurred while running Task 'QA-EACJ(2)' of type com.atlassian.bamboo.plugins.deploy.continuous-plugin-deployment:jiradeploy.
error   15-Jul-2013 08:14:08    com.atlassian.bamboo.task.TaskException: Unexpected response during plugin upload: 401
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.plugins.confdeploy.UniversalPluginUploader.upload(UniversalPluginUploader.java:118)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.plugins.confdeploy.AutoDeployTask.execute(AutoDeployTask.java:105)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:208)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:107)
error   15-Jul-2013 08:14:08        at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
error   15-Jul-2013 08:14:08        at java.lang.Thread.run(Thread.java:662)

Comments (2)

  1. Joe Clark

    This is the error you get when the user is not a System Administrator in JIRA, and therefore cannot upload plugins.

    I'll enhance the task to specifically check for this scenario and fail eagerly with a meaningful error message.

  2. Log in to comment