Nothing will be added to build artifact 'drop'

638 Views Asked by At

I am trying to host a jave project. I have build the pipeline by setting up the parameters as shown in the images but the i am encountering the error saying ##[warning]Directory '/home/azureuser/myagent/.\run.cmd/5/a' is empty. Nothing will be added to build artifact 'drop'. How do I fix this?

enter image description here enter image description here enter image description here enter image description here enter image description here

1

There are 1 best solutions below

1
Suki Ji-MSFT On

It seems you want to publish your jar package to build artifact 'drop'. Jar package should be in the $(System.DefaultWorkingDirectory)\target folder. Thus, you need to use the copy file task to copy jar package from target folder, then publish the package to drop.

enter image description here

You could also check the log of Maven task to see the specific location of jar package.

enter image description here