{ "id": "160202", "key": "TIMOB-23457", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-05-12T07:42:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cb-tooling" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2020-01-30T11:50:44.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "I have the shell script for automatic creation build for iOS and Android but when the build script finished independently whether will finished with some error or success the returned code is always zero.\r\n\r\nFor example:\r\n\r\n~$ appc ti build --platform ios --project-dir \"/mylocalWorkspace\" -T dist-appstore --sdk \"TitaniumSDK\" -R \"someCertificate\" -P \"someProvisioningProfile\"\r\n~$ echo $?\r\n\r\n*EXPECTATION*\r\n When build finished with some error the script always returns code different than zero, that means success finishing.", "attachment": [], "flagged": false, "summary": "Build of project through command \"appc ti build\" on the end always returns code zero ", "creator": { "name": "vladimir.altiparmakov@seavus.com", "key": "vladimir.altiparmakov@seavus.com", "displayName": "Vladimir", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vladimir.altiparmakov@seavus.com", "key": "vladimir.altiparmakov@seavus.com", "displayName": "Vladimir", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TITANIUM_SDK = 5.0.2.GA\r\nCLI Version = 5.0.6\r\nXcode - 7.2.1 (build 7C1002)", "comment": { "comments": [ { "id": "385573", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nCan you explain a little more. Is the \"appc ti build\" is not working in your case? I tested is my environment, and I was able to run project. Also, use \"appc run\" is working for me. Can you send us the error log when you run the command?\r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-12T20:19:25.000+0000", "updated": "2016-05-12T20:19:25.000+0000" }, { "id": "385591", "author": { "name": "vladimir.altiparmakov@seavus.com", "key": "vladimir.altiparmakov@seavus.com", "displayName": "Vladimir", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif,\r\nThanks a lot for your support.\r\n\r\nFirst of all the command \"appc ti build\" works correct, but my problem is that I have shell script for automatically creation build through Jenkins. Therefore, I wont to catch the errors and to stop the preparation of build if some part of the scripts fail.\r\n\r\nActually If you're familiar with writing shell script, it is known that with \"$?\" you can checking the exit status of some command, and according this, the command for building:\r\n\r\n_~$ appc ti build --platform ios --project-dir \"/mylocalWorkspace\" -T dist-appstore --sdk \"TitaniumSDK\" -R \"someCertificate\" -P \"someProvisioningProfile\"\r\n\r\n//Print the exit status\r\n~$ echo $?_\r\n\r\n always returns same exit code equal on zero, independently if this command finish successfully or some error occur. \r\n\r\nYou can see this if manually make some error (for example write incorrect Titanium SDK in inpput params, or create build with not registered application etc.)\r\n\r\nBest Regards,\r\nVladimir.", "updateAuthor": { "name": "vladimir.altiparmakov@seavus.com", "key": "vladimir.altiparmakov@seavus.com", "displayName": "Vladimir", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-12T22:27:40.000+0000", "updated": "2016-05-12T22:27:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }