{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/1726","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/1726/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/1726/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/1726/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/1726","id":154925260,"number":1726,"title":"Android signing step does not work on a Mac build agent","user":{"login":"apacha","id":594497,"avatar_url":"https://avatars.githubusercontent.com/u/594497?v=3","gravatar_id":"","url":"https://api.github.com/users/apacha","html_url":"https://github.com/apacha","followers_url":"https://api.github.com/users/apacha/followers","following_url":"https://api.github.com/users/apacha/following{/other_user}","gists_url":"https://api.github.com/users/apacha/gists{/gist_id}","starred_url":"https://api.github.com/users/apacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apacha/subscriptions","organizations_url":"https://api.github.com/users/apacha/orgs","repos_url":"https://api.github.com/users/apacha/repos","events_url":"https://api.github.com/users/apacha/events{/privacy}","received_events_url":"https://api.github.com/users/apacha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"yacaovsnc","id":10119737,"avatar_url":"https://avatars.githubusercontent.com/u/10119737?v=3","gravatar_id":"","url":"https://api.github.com/users/yacaovsnc","html_url":"https://github.com/yacaovsnc","followers_url":"https://api.github.com/users/yacaovsnc/followers","following_url":"https://api.github.com/users/yacaovsnc/following{/other_user}","gists_url":"https://api.github.com/users/yacaovsnc/gists{/gist_id}","starred_url":"https://api.github.com/users/yacaovsnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacaovsnc/subscriptions","organizations_url":"https://api.github.com/users/yacaovsnc/orgs","repos_url":"https://api.github.com/users/yacaovsnc/repos","events_url":"https://api.github.com/users/yacaovsnc/events{/privacy}","received_events_url":"https://api.github.com/users/yacaovsnc/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-05-15T19:27:06Z","updated_at":"2016-05-16T13:57:24Z","closed_at":null,"body":"The Android signing step currently does not work when running on a Mac build agent.\r\nAlthough the configuration is fine (I attached a screenshot of it below), I only get the following error-message:\r\n```\r\n2016-05-15T18:36:12.0190550Z ##[section]Starting: Signing and aligning APK file(s)\r\n2016-05-15T18:36:12.1986780Z Return code: 1\r\n2016-05-15T18:36:12.2169710Z ##[error]TypeError: Path must be a string. Received undefined\r\n2016-05-15T18:36:12.2332820Z ##[section]Finishing: Signing and aligning APK file(s)\r\n```\r\n\r\nWhen I run the very same build on a hosted Windows machine, the Android signing step works fine and signs the application, but when I run the same configuration on a Mac build agent, this step always fails.\r\n\r\n![Configuration of Android Signing step](https://cloud.githubusercontent.com/assets/594497/15276170/809c5884-1ae0-11e6-8e9b-621f3cd3f675.png)\r\n\r\nI guess that some environment variables are required and not available on a mac, but the error-message is useless for debugging the build-step. When looking into the log-files of the build-agent, you can find:\r\n\r\n```\r\n[2016-05-15 19:10:47Z INFO StepsRunner] Processing step: DisplayName='Signing and aligning APK file(s)', AlwaysRun=False, ContinueOnError=False, Critical=False, Enabled=True, Finally=False\r\n[2016-05-15 19:10:47Z INFO StepsRunner] Starting the step.\r\n[2016-05-15 19:10:47Z INFO TaskManager] Loading task definition '/Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/_tasks/AndroidSigning_80f3f6a0-82a6-4a22-ba7a-e5b8c541b9b9/1.0.16/task.json'.\r\n[2016-05-15 19:10:47Z INFO TaskRunner] The original input is a rooted path, return absolute path: /Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/2/b/Release/com.sightplayer.apk\r\n[2016-05-15 19:10:47Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Worker.IJobExtension'\r\n[2016-05-15 19:10:47Z INFO BuildJobExtension] Build JobExtension resolving path use source provide: \r\n[2016-05-15 19:10:47Z INFO BuildJobExtension] The Default Path Root of Build JobExtension is build.sourcesDirectory: /Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/2/s\r\n[2016-05-15 19:10:47Z INFO BuildJobExtension] After prefix Default Path Root provide by JobExtension: /Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/2/s\r\n[2016-05-15 19:10:47Z INFO BuildJobExtension] Return absolute path after prefix DefaultPathRoot: /Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/2/s\r\n[2016-05-15 19:10:47Z INFO TaskRunner] build JobExtension resolved a rooted path:: /Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/2/s\r\n[2016-05-15 19:10:47Z INFO ProcessInvoker] Starting process with file name '/Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/externals/node/bin/node', arguments '\"/Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/_tasks/AndroidSigning_80f3f6a0-82a6-4a22-ba7a-e5b8c541b9b9/1.0.16/androidsigning.js\"', and working directory '/Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/_tasks/AndroidSigning_80f3f6a0-82a6-4a22-ba7a-e5b8c541b9b9/1.0.16'.\r\n[2016-05-15 19:10:47Z INFO JobServerQueue] Try to append 1 batches web console lines, success rate: 1/1.\r\n[2016-05-15 19:10:47Z INFO WorkerCommandManager] Process logging command ##vso[task.debug]\r\n[…]\r\n[2016-05-15 19:10:47Z INFO WorkerCommandManager] Process logging command ##vso[task.debug]\r\n[2016-05-15 19:10:47Z INFO WorkerCommandManager] Process logging command ##vso[task.issue]\r\n[2016-05-15 19:10:47Z INFO WorkerCommandManager] Process logging command ##vso[task.debug]\r\n[2016-05-15 19:10:47Z INFO WorkerCommandManager] Process logging command ##vso[task.complete]\r\n[2016-05-15 19:10:47Z INFO ProcessInvoker] Finished process with file name '/Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/externals/node/bin/node', arguments '\"/Users/alex/VstsBuildAgent/vsts-agent-osx.10.11-x64-2.100.1/_work/_tasks/AndroidSigning_80f3f6a0-82a6-4a22-ba7a-e5b8c541b9b9/1.0.16/androidsigning.js\"', exit code 0, and elapsed time 00:00:00.3129523.\r\n[2016-05-15 19:10:47Z INFO StepsRunner] Step result: Failed\r\n[2016-05-15 19:10:47Z INFO StepsRunner] Current state: job state = 'Failed', step failed = True, critical step failed = False\r\n```\r\nAny ideas, what is wrong here?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/219431191","html_url":"https://github.com/Microsoft/vsts-tasks/issues/1726#issuecomment-219431191","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/1726","id":219431191,"user":{"login":"apacha","id":594497,"avatar_url":"https://avatars.githubusercontent.com/u/594497?v=3","gravatar_id":"","url":"https://api.github.com/users/apacha","html_url":"https://github.com/apacha","followers_url":"https://api.github.com/users/apacha/followers","following_url":"https://api.github.com/users/apacha/following{/other_user}","gists_url":"https://api.github.com/users/apacha/gists{/gist_id}","starred_url":"https://api.github.com/users/apacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apacha/subscriptions","organizations_url":"https://api.github.com/users/apacha/orgs","repos_url":"https://api.github.com/users/apacha/repos","events_url":"https://api.github.com/users/apacha/events{/privacy}","received_events_url":"https://api.github.com/users/apacha/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T13:57:24Z","updated_at":"2016-05-16T13:57:24Z","body":"Well, jarsigner is not located under the JAVA_HOME directory on a Mac, but /usr/bin/jarsigner. Why not simply executing jarsigner? I'm sure there is a way to find executables on different operating systems without expecting them to be placed in JAVA_HOME directory. How does the msbuild task solve this issue? "}}