2016-12-05 4 views
0

Beim Versuch, meine cordova-Anwendung zu erstellen, erhalte ich beim Erstellen auf meinem OSX mit dem VSTS-Agenten (plattformübergreifend) eine "undefinierte Funktion".VSTS-Agent erstellt keine cordova iOS-Anwendung

Mein Buildprotokoll:

tf resolvePath -workspace:ws_1_13 $/projectname/Source/BerichtgevingApp/Cordova/res/certificates/ios/Distribution.p12 -collection:http://mycompany17:8080/tfs/Projecten/ -jwt:******** -noprompt 
/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/res/certificates/ios/Distribution.p12 
tf resolvePath -workspace:ws_1_13 $/projectname/Source/BerichtgevingApp/Cordova/res/certificates/ios/projectname_Berichtgeving_App.mobileprovision -collection:http://mycompany17:8080/tfs/Projecten/ -jwt:******** -noprompt 
/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/res/certificates/ios/projectname_Berichtgeving_App.mobileprovision 
tf resolvePath -workspace:ws_1_13 $/projectname/Source/BerichtgevingApp/Cordova -collection:http://mycompany17:8080/tfs/Projecten/ -jwt:******** -noprompt 
/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s 
agent.workFolder=/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work 
loading inputs and endpoints 
loading INPUT_PLATFORM 
loading INPUT_CONFIGURATION 
loading INPUT_CORDOVAVERSION 
loading INPUT_ANTBUILD 
loading INPUT_KEYSTOREFILE 
loading INPUT_IOSSIGNMETHOD 
loading INPUT_P12 
loading INPUT_P12PWD 
loading INPUT_UNLOCKDEFAULTKEYCHAIN 
loading INPUT_PROVPROFILE 
loading INPUT_REMOVEPROFILE 
loading INPUT_XCODEDEVELOPERDIR 
loading INPUT_WINDOWSPHONEONLY 
loading INPUT_WINDOWSONLY 
loading INPUT_CWD 
loading INPUT_OUTPUTPATTERN 
loading INPUT_TARGETEMULATOR 
loading ENDPOINT_AUTH_$/ 
loading ENDPOINT_AUTH_SCHEME_$/ 
loading ENDPOINT_AUTH_PARAMETER_$/_ACCESSTOKEN 
loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 
loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 
loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 
loaded 23 
BUILD_SOURCEDIRECTORY=undefined 
BUILD_SOURCESDIRECTORY=/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s 
CWD=/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s 
XCODEDEVELOPERDIR=/Applications/Xcode.app/Contents/Developer 
CONFIGURATION=Release 
ARCHS=null 
PLATFORM=ios 
TARGETEMULATOR=false 
WINDOWSAPPX=null 
WINDOWSONLY=false 
WINDOWSPHONEONLY=false 
UNLOCKDEFAULTKEYCHAIN=false 
DEFAULTKEYCHAINPASSWORD=null 
P12=/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/res/certificates/ios/Distribution.p12 
P12PWD=password 
IOSSIGNINGIDENTITY=null 
PROVPROFILEUUID=null 
PROVPROFILE=/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s/res/certificates/ios/projectname_Berichtgeving_App.mobileprovision 
REMOVEPROFILE=true 
ANTBUILD=false 
KEYSTOREFILE=/Users/mycompany/Documents/TFSAgent/vsts-agent-osx.10.11-x64-2.105.7/_work/1/s 
KEYSTOREPASS=null 
KEYSTOREALIAS=null 
KEYPASS=null 
OUTPUTPATTERN=bin 
CORDOVAARGS=null 
CORDOVAVERSION=6.3.1 
undefined is not a function 
task result: Failed 
Task failed 
Processed: ##vso[task.issue type=error;]Task failed 
Processed: ##vso[task.complete result=Failed;]Task failed 

Ich verwende diesen Build-Agent https://github.com/Microsoft/vsts-cordova-tasks/https://marketplace.visualstudio.com/items?itemName=ms-vsclient.cordova-extension. Es ist ein TFS 2015 Update 3 env.

Screenshots von Build-Service:

https://gyazo.com/f8d3e3628732096b0ef05f876b4f4262

+0

Warum haben Sie zwei BUILD_SOURCEDIRECTORY, eine mit 'BUILD_SOURCEDIRECTORY = undefined' in Ihrem Protokoll. Dies kann das Problem verursachen. –

+0

Keine Ahnung. Dies sind die Variablen, die ich benutze: https://gyazo.com/2c27b2cc39c3f5bf9e8003ca9b800c84. Ich denke, dass sie von der Cordova TFS-Aufgabe –

+0

bereitgestellt werden Können Sie es erfolgreich erstellen, wenn Sie es manuell auf dem Agenten erstellen? –

Antwort

0

Da Sie den Build über den Befehl ausführen können, bevor Sie das Problem herausfinden, können Sie auch hinzufügen „Command Line“ Aufgabe, den Build als Behelfslösung laufen . enter image description here