error : Web deployment task failed. (Unknown ProviderOption:DefiningProjectFullPath) - jenkins

All the solutions provided in stack for below error didn't help me. I am using /p:VisualStudioVersion=10.0 /p:Configuration=Release
/p:DesktopBuildPackageLocation=$WORKSPACE\package.zip /t:Package has Command Line Arguments under Jenkins job to run MSBuild proj. "package.zip" file is not getting created under my work-space if I use /p:DesktopBuildPackageLocation=some\package.zip Please suggest me command Line arguments. I am using Upload artifact to Nexus plugin as well to upload this zip file.
error : Web deployment task failed. (Unknown ProviderOption:DefiningProjectFullPath. Known ProviderOptions are:.)

Related

TFS build error: Web deployment task failed. Package file does not have a .zip file name extension

I am getting the following error when I am queuing a build in TFS 2017.
"Microsoft.Web.Publishing.targets 3009,5): Error : Web deployment task failed. (Package file 'C:\agent_work\3\s\TestApp\TestApp\release' does not have a .zip file name extension.)"
I am not sure why I am getting this error. I have hosted agent on the TFS server. I created the build definition according to this video:
www.youtube.com/watch?v=HjD4A-yeFTE
Does somebody have any idea? Appreciate your help!
Test at my side and everything works correctly.
Please try below items to narrow down the issue:
Please check the drop folder, if the .zip file actually being in the
place that you expected.
Try to specify the output path, eg:
/p:PackageLocation="$(build.artifactstagingdirectory)\\" , then
specify the Copy Root path as $(build.artifactstagingdirectory)
in Copy and Publish Build Artifacts task.
Explicitly specifying .zip extension in MSBuild Argument in the
Build Definition.
p:PackageLocation="$(BuildConfiguration)\package.zip
Check the build log, check if MSbuild works correctly. Also you can try the Msbuild command line locally to check if the .zip package can be generated.
Deploy a new agent on your Develop machine, create a new build
definition, then build with the new agent.
If still can not resolve the issue, just share the build logs here for further troubleshoot.

'File not found' error when running an execute shell script using Steamcmd

I'm trying to automate my build uploads to Steam using Jenkins to transfer the builds from Unity Cloud Build service. However when running this code through a shell script in Jenkins:
/sdk/tools/ContentBuilder/builder_linux/steamcmd.sh +login your_login_name +run_app_build $WORKSPACE/app_build_123456.vdf +exit
I get this returned:
/sdk/tools/ContentBuilder/builder_linux/steamcmd.sh: not found
The file exists in the Steamworks SDK folder as I have verified many times, yet it can't be found. What is wrong with the file path for it not to be seen by Jenkins?

build failed in hudson when building job for deploy target

Have built a simple ADF web application in jdevelper and built ant build file when i run the file all ant targets run fine however when i try to run targets in hudson all targets run fine except deploy target and the build failed and have this error
BUILD FAILED
C:\Windows\System32\config\systemprofile.hudson\jobs\sunday\workspace\ViewController\build.xml:282:
taskdef class oracle.jdeveloper.deploy.ant.OJDeployAntTask cannot be
found using the classloader AntClassLoader[] total time:0 seconds
finished: failure
In the build.properties file try to give absolute path for the variable oracle.home
It resolved the issue in my case.

Jenkins deploying artifact to WebLogic

Trying to deploy an artifact using Jenkins WebLogic Deployer Plugin.
Getting following error:
Error: Could not find or load main class weblogic.Deployer
According to the documentation I should be using wlthint3client.jar (WebLogic version 12.1.3) but this client jar doesn't contain above class (Deployer), tried using the wlfullclient.jar which is said to be deprecated but if that throws another exception:
Hi, I want to install a war file generated from Jenkins to WebLogic, both on different machines, but when the installation runs an error is generated:
java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions
at weblogic.deploy.api.tools.deployer.Jsr88Operation.init(Jsr88Operation.java:70)
Any ideas what could be the issue?
Regards!
I am having the same problem. I solved it actually adding all of these three libraries to the Additional Classpath:
wlthint3client.jar:weblogic.jar:wlfullclient.jar

Msbuild file with grunt giving error while executing from Jenkins

I am executing my Msbuild file from Jenkins using below command using Execute windows batch command option.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild "D:****\Build Scripts\BuildAndDeploy.proj"
this command executing perfectly from command prompt but in jenkins I am getting below error...
'grunt' is not recognized as an internal or external command,
operable program or batch file.
D:****\Build Scripts\BuildAndDeploy.proj(29,3): error MSB3073: The command "grunt build" exited with code 9009.
Done Building Project "D:*****\Build Scripts\BuildAndDeploy.proj" (default targets) -- FAILED.
Build FAILED.
Please suggest me how to handle this.
Thanks in advance.

Resources