jenkinsci / azure-credentials-plugin

Jenkins Azure Credentials plugin
https://plugins.jenkins.io/azure-credentials/
MIT License
10 stars 26 forks source link

Not able to deploy to azure web app #239

Closed Sweta1787 closed 7 months ago

Sweta1787 commented 7 months ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins installed on windows server , using built in agent

Reproduction steps

Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 8d369c92-8adb-4f2f-a3f1-aa12a090091b java.lang.NoSuchMethodError: 'byte[] com.microsoft.azure.util.AzureBaseCredentials.serializeToTokenData()' at com.microsoft.jenkins.appservice.util.AzureUtils.getToken(AzureUtils.java:24) at com.microsoft.jenkins.appservice.util.AzureUtils.buildClient(AzureUtils.java:28) at com.microsoft.jenkins.appservice.WebAppDeploymentRecorder.perform(WebAppDeploymentRecorder.java:168) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842) Finished: FAILURE

Expected Results

Using azure service principal , tested to be working fine:

image

but while deploying getting error

Actual Results

image

Anything else?

All the plugins are updated , using jdk17

Are you interested in contributing a fix?

No response

timja commented 7 months ago

The app service plugin has been broken for years as part of the migration from track 1 to track 2 sdk. It needs someone to modernise the plugin https://github.com/jenkinsci/azure-app-service-plugin

This isn't related to this plugin so I'll close it out here.