{"action":"created","issue":{"url":"https://api.github.com/repos/openbakery/gradle-xcodePlugin/issues/217","labels_url":"https://api.github.com/repos/openbakery/gradle-xcodePlugin/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/openbakery/gradle-xcodePlugin/issues/217/comments","events_url":"https://api.github.com/repos/openbakery/gradle-xcodePlugin/issues/217/events","html_url":"https://github.com/openbakery/gradle-xcodePlugin/issues/217","id":111825172,"number":217,"title":"build didn't mark as fail.","user":{"login":"kolard","id":4179298,"avatar_url":"https://avatars.githubusercontent.com/u/4179298?v=3","gravatar_id":"","url":"https://api.github.com/users/kolard","html_url":"https://github.com/kolard","followers_url":"https://api.github.com/users/kolard/followers","following_url":"https://api.github.com/users/kolard/following{/other_user}","gists_url":"https://api.github.com/users/kolard/gists{/gist_id}","starred_url":"https://api.github.com/users/kolard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolard/subscriptions","organizations_url":"https://api.github.com/users/kolard/orgs","repos_url":"https://api.github.com/users/kolard/repos","events_url":"https://api.github.com/users/kolard/events{/privacy}","received_events_url":"https://api.github.com/users/kolard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-16T12:50:32Z","updated_at":"2015-10-19T14:57:12Z","closed_at":null,"body":"Hi.\r\nI've found strange issue.\r\nI have some errors during my build, as result I see the build is \"succsess\", but should be \"failed\"\r\nHere is console output:\r\n \r\n```\r\n...\r\n {my_file_path} No such file or directory\r\n\r\n2015-10-16 13:48:41.007 xcodebuild[1430:1031613]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-8186/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:739\r\nDetails:  unexpected successful exit code from cancelled command <C0762:'CpResource Basket_Tests':P8>\r\nObject:   <PBXTargetBuildContext: 0x7f81cd6eb3a0>\r\nMethod:   -createCommandInvocationRecordFromInvocation:\r\nThread:   <NSThread: 0x7f81ce4438b0>{number = 8, name = (null)}\r\nPlease file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.\r\n** BUILD FAILED **\r\n\r\n\r\nThe following build commands failed:\r\n\tCpResource  {My_file_path}\r\n(1 failure)\r\n\r\nDone\r\n:keychainRemove\r\n:archive\r\n:package\r\nnot a device build, so no codesign and packaging needed\r\n:calabash_build\r\n\r\nBUILD SUCCESSFUL\r\n```\r\n\r\nHere is my gradle config for this task, may be I should add some parameter for marking build as fail?\r\n\r\n```\r\n...\r\ntask calabash_build(dependsOn:'package', type:Exec){\r\n        description = \"Performs build for calabash tests without launching Sinatra mocks service\"\r\n        dependsOn calabash_init, calabash_loc\r\n        commandLine 'bundle', 'exec', 'calabash-ios', 'sim', 'reset'\r\n        ext.output = {\r\n                return errorOutput.toString()\r\n        }\r\n}\r\n...\r\ngradle.taskGraph.whenReady { taskGraph ->\r\n\r\n        // ------------------------------------------------------------------------------------------\r\n\r\n        if (taskGraph.hasTask(calabash) || taskGraph.hasTask(calabash_build)) {\r\n                println \"Configure device settings for the build and calabash tests\"\r\n\r\n                println \"Setting xcodebuild configuration\"\r\n                xcodebuild {\r\n                                sdk = 'iphonesimulator'\r\n                                target = ''my_target\"\r\n                                scheme = ''my_scheme\"\r\n                                workspace = 'my.xcworkspace'\r\n                                configuration = 'Calabash'\r\n                        }\r\n                }\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/openbakery/gradle-xcodePlugin/issues/comments/149239727","html_url":"https://github.com/openbakery/gradle-xcodePlugin/issues/217#issuecomment-149239727","issue_url":"https://api.github.com/repos/openbakery/gradle-xcodePlugin/issues/217","id":149239727,"user":{"login":"renep","id":414025,"avatar_url":"https://avatars.githubusercontent.com/u/414025?v=3","gravatar_id":"","url":"https://api.github.com/users/renep","html_url":"https://github.com/renep","followers_url":"https://api.github.com/users/renep/followers","following_url":"https://api.github.com/users/renep/following{/other_user}","gists_url":"https://api.github.com/users/renep/gists{/gist_id}","starred_url":"https://api.github.com/users/renep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renep/subscriptions","organizations_url":"https://api.github.com/users/renep/orgs","repos_url":"https://api.github.com/users/renep/repos","events_url":"https://api.github.com/users/renep/events{/privacy}","received_events_url":"https://api.github.com/users/renep/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T14:57:12Z","updated_at":"2015-10-19T14:57:12Z","body":"I have updated the last post... -> change dependsOn to 'archive'"}}