Shri iDev created JENKINS-12653:
-----------------------------------

             Summary: Need Plugin for passing credentials to Post Script in 
XCode Builds
                 Key: JENKINS-12653
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12653
             Project: Jenkins
          Issue Type: Improvement
          Components: xcode
         Environment: xcode, iOS
            Reporter: Shri iDev
            Priority: Blocker


I am trying to implement complete end to end automation from generating the 
build and running automation test on that build. I have been able to generate 
the build and now trying to run the automation by running the a post script. To 
invoke the instruments tools I need to use "Sudo" command which needs to be run 
on the super user or needs login id and password to be passed of the current 
user. Without sudo command following error comes up: 

"instruments[64703:60f] -[NSAlert alertWithError:] called with nil NSError. A 
generic error message will be displayed, but the user deserves better. 
_RegisterApplication(), FAILED TO establish the default connection to the 
WindowServer, _CGSDefaultConnection() is NULL. Mon Feb 6 13:15:20 inpunml310743 
instruments[64703] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to 
catch errors as they are logged. 2012-02-06 13:15:20.179 instruments[64703:60f] 
Recording cancelled : At least one target failed to launch; aborting run 
Instruments Trace Error : Failed to start trace. Build step 'Execute shell' 
marked build as failure Finished: FAILURE"

with sudo command(since it does not get password) this error comes:

sudo: no tty present and no askpass program specified.

PS: I am able to run the script manually by double clicking and it starts the 
instruments tools for automation. This does not work with jenkins only as it I 
think tries to remotely access the application(I am running jenkins on 
localhost).

Please help as it of very high priority for me.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to