[JIRA] (JENKINS-59010) As User I would like to have control over the deployment mode

0 views
Skip to first unread message

peter.niederlag@datenbetrieb.de (JIRA)

unread,
Aug 20, 2019, 10:09:02 AM8/20/19
to jenkinsc...@googlegroups.com
Peter Niederlag created an issue
 
Jenkins / Improvement JENKINS-59010
As User I would like to have control over the deployment mode
Issue Type: Improvement Improvement
Assignee: Azure DevOps
Components: azure-function-plugin
Created: 2019-08-20 14:08
Priority: Minor Minor
Reporter: Peter Niederlag

currently it seems the azure-function-plugin has some super cow power and decides the deployment strategy based on:

  • it's a java app, use zip deployment
  • otherwise, use git deployment

It would be cool if the decision on the deployment mode could be made by the user.

Also it would be important to drop a note somewhere on these decisions as - to my knowledge - the settings in the function app must correspond to the deployment mode used.

(WEBSITE_RUN_FROM_PACKAGE = "1")

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jieshe@microsoft.com (JIRA)

unread,
Aug 20, 2019, 11:07:01 PM8/20/19
to jenkinsc...@googlegroups.com
Jie Shen assigned an issue to Jie Shen
Change By: Jie Shen
Assignee: Azure DevOps Jie Shen

jieshe@microsoft.com (JIRA)

unread,
Aug 22, 2019, 2:00:03 AM8/22/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Improvement JENKINS-59010
 
Re: As User I would like to have control over the deployment mode

Make sense. But it may be a little difficult to achieve.

peter.niederlag@datenbetrieb.de (JIRA)

unread,
Aug 22, 2019, 3:27:02 AM8/22/19
to jenkinsc...@googlegroups.com

first of all, thx for getting back on this.

Shouldn't it be possible to add another parameter "deploymentMode" (zip|git) to the plugin in here?
https://github.com/jenkinsci/azure-function-plugin/tree/dev/src/main/resources/com/microsoft/jenkins/function/FunctionAppDeploymentRecorder

And then override the isJava logic when this parameter is set to zip|git in here: https://github.com/jenkinsci/azure-function-plugin/blob/dev/src/main/java/com/microsoft/jenkins/function/FunctionAppDeploymentCommandContext.java

Could this be a valid approach?
Is there any further logic baked into the zip|git deployment strategies that makes them dependent on the type of the function app (java, nodejs, ...)?

jieshe@microsoft.com (JIRA)

unread,
Aug 22, 2019, 5:06:04 AM8/22/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Improvement JENKINS-59010

Peter Niederlag The basic logic should be like that. You just need to be careful not to introduce any incompatible changes to existing users.

Reply all
Reply to author
Forward
0 new messages