jfrog / bamboo-artifactory-plugin

Atlassian Bamboo plugin that enables traceable build artifacts with Artifactory
https://plugins.atlassian.com/plugin/details/27818
Apache License 2.0
42 stars 56 forks source link

'Artifactory Gradle Build' failing with return code -1 #8

Open bradthurber opened 9 years ago

bradthurber commented 9 years ago

Environment: Bamboo version v5.6.2 Bamboo Artifactory plugin v1.7.4 Windows Server 2012 R2

Bamboo build log:

    simple  07-Oct-2014 07:14:45    Starting task 'Artifactory Gradle Build' of type 'org.jfrog.bamboo.bamboo-artifactory-plugin:artifactoryGradleTask'
    command 07-Oct-2014 07:14:45    Beginning to execute external process for build 'access - build all - Default Job #24 (AC-BA-JOB1-24)'\n ... running command line: \n.\gradlew -I J:\Bamboo\temp\artifactory.init.script6703692451085972424gradle -DbuildInfoConfig.propertiesFile=J:\Bamboo\temp\buildinfo8549441495103486854properties artifactoryPublish\n 
    ...
    simple  07-Oct-2014 07:14:45    Failing task since return code of [.\gradlew -I J:\Bamboo\temp\artifactory.init.script6703692451085972424gradle -DbuildInfoConfig.propertiesFile=J:\Bamboo\temp\buildinfo8549441495103486854properties artifactoryPublish] was -1 while expected 0

If I open a command prompt and run the same command manually, it works properly - and ECHO %ERRORLEVEL% returns 0

This is my first time using Bamboo and setting up the plugin so it is quite possible I don't have something right. Is it possible that the plugin isn't compatible with Bamboo 5.6.2?

bradthurber commented 9 years ago

Update: Just tried with newer snapshot version of the plugin:

bamboo-artifactory-plugin-1.7.x-20141002.124834-34.jar

It appears to be failing the same way.

liorhson commented 9 years ago

Hi, Please run your plan with --debug on the gradle command line, this error is too general, for example maybe the Artifactory deploy repository that you defined is not with the right layout for your deployed artifacts.

bradthurber commented 9 years ago

Hi,

Log files are here:

https://onedrive.live.com/redir?resid=767D67ADAE005F6D!43188&authkey=!AM8TN1We-r7PiD0&ithint=file%2czip

The run from the command line is manual-gradle-run.log - and it appears to have succeeded as before. Artifacts show up in artifactory as expected

I also tried using --debug from the "Command-Line Options" within artifactory bamboo plugin. The log file for this is bamboo.log.

I took a screenshot of the bamboo artifactory config page. it is bamboo-artifactory-config.jpg