0

我的构建定义中的代码推送发布步骤出现以下错误 我在构建定义中的代码推送发布步骤中遇到错误。我在 cordova 构建后立即执行发布步骤。Cordova 构建成功完成,但发布步骤失败。

2017-11-10T05:42:40.8101798Z ##[debug]Evaluating condition for step: 'Release update to Staging (Syngenta_Visit_Report1)'

2017-11-10T05:42:40.8101798Z ##[调试]评估:成功()

2017-11-10T05:42:40.8101798Z ##[debug]Evaluating succeeded:

2017-11-10T05:42:40.8101798Z ##[debug]=> (Boolean) True

2017-11-10T05:42:40.8101798Z ##[debug]Expanded: True

2017-11-10T05:42:40.8101798Z ##[debug]Result: True

2017-11-10T05:42:40.8101798Z ##[section]Starting: Release update to Staging (Syngenta_Visit_Report1)

2017-11-10T05:42:40.8111795Z ==============================================================================

2017-11-10T05:42:40.8111795Z Task : CodePush - Release (Cordova)

2017-11-10T05:42:40.8111795Z Description : Release a Cordova app update to the CodePush service

2017-11-10T05:42:40.8111795Z Version : 1.0.5

2017-11-10T05:42:40.8111795Z Author : Microsoft Corporation

2017-11-10T05:42:40.8111795Z Help : 

2017-11-10T05:42:40.8111795Z ==============================================================================

2017-11-10T05:42:41.1157912Z ##[debug]BUILD_SOURCEDIRECTORY=undefined

2017-11-10T05:42:41.1177902Z ##[debug]BUILD_SOURCESDIRECTORY=d:\a\1\s

2017-11-10T05:42:41.1177902Z ##[debug]Swapping to working directory: d:\a\1\s

2017-11-10T05:42:41.1177902Z ##[debug]authType=AccessKey

2017-11-10T05:42:41.1177902Z ##[debug]accessKey=8e9a1f3c6fa9b7b572d472469017d265de1c7236

2017-11-10T05:42:41.1177902Z ##[debug]appName=Syngenta_Visit_Report1

2017-11-10T05:42:41.1187880Z ##[debug]deploymentName=Staging

2017-11-10T05:42:41.1187880Z ##[debug]platform=android

2017-11-10T05:42:41.1187880Z ##[debug]shouldBuild=true

2017-11-10T05:42:41.1187880Z ##[debug]appStoreVersion=autodetect

2017-11-10T05:42:41.1187880Z ##[debug]rollout=100%

2017-11-10T05:42:41.1187880Z ##[debug]description=

2017-11-10T05:42:41.1187880Z ##[debug]isMandatory=false

2017-11-10T05:42:41.1187880Z ##[debug]isDisabled=false

2017-11-10T05:42:41.1187880Z ##[debug]Finished Building Command: node d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\code-push-cli\script\cli logout

2017-11-10T05:42:42.0207706Z ##[debug]Finished Building Command: node d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\code-push-cli\script\cli login --accessKey "8e9a1f3c6fa9b7b572d472469017d265de1c7236"

2017-11-10T05:42:42.0207706Z ##[debug]Attempting execution of command: node d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\code-push-cli\script\cli login --accessKey "8e9a1f3c6fa9b7b572d472469017d265de1c7236"

2017-11-10T05:42:44.1898862Z 

2017-11-10T05:42:44.1998845Z Successfully logged-in. Your session file was written to C:\Users\buildguest\AppData\Local\.code-push.config. You can run the code-push logout command at any time to delete this file and terminate your session.

2017-11-10T05:42:44.1998845Z 

2017-11-10T05:42:44.2038856Z Installing local cordova cli...

2017-11-10T05:43:09.8899025Z npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

2017-11-10T05:43:40.5326001Z d:\a\1\s

2017-11-10T05:43:40.5326001Z `-- cordova@7.1.0 

2017-11-10T05:43:40.5326001Z +-- configstore@2.1.0 

2017-11-10T05:43:40.5326001Z | +-- dot-prop@3.0.0 

2017-11-10T05:43:40.5326001Z | | `-- is-obj@1.0.1 

2017-11-10T05:43:40.5326001Z | +-- graceful-fs@4.1.11 

2017-11-10T05:43:40.5326001Z | +-- mkdirp@0.5.1 

2017-11-10T05:43:40.5326001Z | | `-- minimist@0.0.8 

2017-11-10T05:43:40.5385996Z | | | +-- path-to-regexp@0.1.7 

2017-11-10T05:43:40.5385996Z | | | +-- proxy-addr@2.0.2 

2017-11-10T05:43:40.5385996Z | | | | +-- forwarded@0.1.2 

2017-11-10T05:43:40.5385996Z | | | | `-- ipaddr.js@1.5.2 

2017-11-10T05:43:40.5385996Z | | | +-- qs@6.5.1 

2017-11-10T05:43:40.5395991Z | | | +-- range-parser@1.2.0 

2017-11-10T05:43:40.5395991Z | | | +-- send@0.16.1 

2017-11-10T05:43:40.5395991Z | | | | +-- destroy@1.0.4 

2017-11-10T05:43:40.5395991Z | | | | `-- mime@1.4.1 

2017-11-10T05:43:40.5395991Z | | | +-- serve-static@1.13.1 

2017-11-10T05:43:40.5395991Z | | | +-- setprototypeof@1.1.0 

2017-11-10T05:43:40.5395991Z | | | +-- statuses@1.3.1 

2017-11-10T05:43:40.5395991Z | | | +-- type-is@1.6.15 

2017-11-10T05:43:40.5395991Z | | | | `-- media-typer@0.3.0 

2017-11-10T05:43:40.5395991Z | | | `-- utils-merge@1.0.1 

2017-11-10T05:43:40.5395991Z | | `-- open@0.0.5 

2017-11-10T05:43:40.5395991Z | +-- dep-graph@1.1.0 

2017-11-10T05:43:40.5395991Z | | `-- underscore@1.2.1 

2017-11-10T05:43:40.5395991Z | +-- glob@7.1.1 

2017-11-10T05:43:40.5395991Z | | `-- fs.realpath@1.0.0 

2017-11-10T05:43:40.5395991Z | +-- init-package-json@1.10.1 

2017-11-10T05:43:40.5395991Z | | +-- glob@7.1.2 

2017-11-10T05:43:40.5395991Z | | +-- npm-package-arg@5.1.2 

2017-11-10T05:43:40.5395991Z | | | `-- hosted-git-info@2.5.0 

2017-11-10T05:43:40.5395991Z | | +-- promzard@0.3.0 

2017-11-10T05:43:40.5395991Z | | +-- read@1.0.7 

2017-11-10T05:43:40.5395991Z | | | `-- mute-stream@0.0.7 

2017-11-10T05:43:40.5395991Z | | +-- read-package-json@2.0.12 

2017-11-10T05:43:40.5395991Z | | | +-- glob@7.1.2 

2017-11-10T05:43:40.5405995Z | | +-- ansistyles@0.1.3 

2017-11-10T05:43:40.5405995Z | | +-- archy@1.0.0 

2017-11-10T05:43:40.5405995Z | | +-- async-some@1.0.2 

2017-11-10T05:43:40.5405995Z | | +-- block-stream@0.0.9 

2017-11-10T05:43:40.5405995Z | | +-- char-spinner@1.0.1 

2017-11-10T05:43:40.5405995Z | | +-- chmodr@1.0.2 

2017-11-10T05:43:40.5405995Z | | +-- chownr@1.0.1 

2017-11-10T05:43:40.5405995Z | | +-- cmd-shim@2.0.2 

2017-11-10T05:43:40.5405995Z | | +-- columnify@1.5.4 

2017-11-10T05:43:40.5405995Z | | | `-- wcwidth@1.0.0 

2017-11-10T05:43:40.5405995Z | | | `-- defaults@1.0.3 

2017-11-10T05:43:40.5405995Z | | | `-- clone@1.0.2 

2017-11-10T05:43:40.5405995Z | | +-- config-chain@1.1.10 

2017-11-10T05:43:40.5405995Z | | | `-- proto-list@1.2.4 

2017-11-10T05:43:40.5405995Z | | +-- dezalgo@1.0.3 

2017-11-10T05:43:40.5405995Z | | | `-- asap@2.0.3 

2017-11-10T05:43:40.5405995Z | | +-- editor@1.0.0 

2017-11-10T05:43:40.5405995Z | | +-- fs-vacuum@1.2.9 

2017-11-10T05:43:40.5405995Z | | +-- fs-write-stream-atomic@1.0.8 

2017-11-10T05:43:40.5405995Z | | | `-- iferr@0.1.5 

2017-11-10T05:43:40.5405995Z | | +-- fstream@1.0.10 

2017-11-10T05:43:40.5405995Z | | +-- fstream-npm@1.1.1 

2017-11-10T05:43:40.5405995Z | | | `-- fstream-ignore@1.0.5 

2017-11-10T05:43:40.5405995Z | | +-- github-url-from-git@1.4.0 

2017-11-10T05:43:40.5405995Z | | +-- github-url-from-username-repo@1.0.2

2017-11-10T05:43:40.5405995Z | | +-- glob@7.0.6 

2017-11-10T05:43:40.5405995Z | | | +-- fs.realpath@1.0.0 

2017-11-10T05:43:40.5415994Z | | | `-- path-is-absolute@1.0.0 

2017-11-10T05:43:40.5415994Z | | +-- graceful-fs@4.1.6 

2017-11-10T05:43:40.5415994Z | | +-- hosted-git-info@2.1.5 

2017-11-10T05:43:40.5415994Z | | +-- imurmurhash@0.1.4 

2017-11-10T05:43:40.5415994Z | | +-- inflight@1.0.5 

2017-11-10T05:43:40.5415994Z | | +-- inherits@2.0.3 

2017-11-10T05:43:40.5415994Z | | +-- ini@1.3.4 

2017-11-10T05:43:40.5415994Z | | +-- init-package-json@1.9.4 

2017-11-10T05:43:40.5415994Z | | | +-- glob@6.0.4 

2017-11-10T05:43:40.5415994Z | | | | `-- path-is-absolute@1.0.0 

2017-11-10T05:43:40.5415994Z | | | `-- promzard@0.3.0 

2017-11-10T05:43:40.5415994Z | | +-- lockfile@1.0.1 

2017-11-10T05:43:40.5415994Z | | +-- lru-cache@4.0.1 

2017-11-10T05:43:40.5415994Z | | | +-- pseudomap@1.0.2 

2017-11-10T05:43:40.5415994Z | | | `-- yallist@2.0.0 

2017-11-10T05:43:40.5415994Z | | +-- minimatch@3.0.3 

2017-11-10T05:43:40.5415994Z | | | `-- brace-expansion@1.1.6 

2017-11-10T05:43:40.5415994Z | | | +-- balanced-match@0.4.2 

2017-11-10T05:43:40.5415994Z | | | `-- concat-map@0.0.1 

2017-11-10T05:43:40.5415994Z | | +-- mkdirp@0.5.1 

2017-11-10T05:43:40.5415994Z | | | `-- minimist@0.0.8 

2017-11-10T05:43:40.5415994Z | | +-- node-gyp@3.6.0 

2017-11-10T05:43:40.5415994Z | | | `-- semver@5.3.0 

2017-11-10T05:43:40.5415994Z | | +-- nopt@3.0.6 

2017-11-10T05:43:40.5415994Z | | +-- normalize-git-url@3.0.2 

2017-11-10T05:43:40.5415994Z | | +-- normalize-package-data@2.3.5 

2017-11-10T05:43:40.5415994Z | | | `-- is-builtin-module@1.0.0 

2017-11-10T05:43:40.5415994Z | | | `-- builtin-modules@1.1.0 

2017-11-10T05:43:40.5415994Z | | +-- npm-cache-filename@1.0.2 

2017-11-10T05:43:40.5415994Z | | +-- npm-install-checks@1.0.7 

2017-11-10T05:43:40.5415994Z | | +-- npm-package-arg@4.1.0 

2017-11-10T05:43:40.5415994Z | | +-- npm-registry-client@7.2.1 

2017-11-10T05:43:40.5415994Z | | | +-- concat-stream@1.5.2 

2017-11-10T05:43:40.5415994Z | | | | +-- readable-stream@2.0.6 

2017-11-10T05:43:40.5415994Z | | | | | +-- core-util-is@1.0.2 

2017-11-10T05:43:40.5415994Z | | | | | +-- isarray@1.0.0 

2017-11-10T05:43:40.5425994Z | | | | | +-- process-nextick-args@1.0.7 

2017-11-10T05:43:40.5425994Z | | | | | +-- string_decoder@0.10.31 

2017-11-10T05:43:40.5425994Z | | | | | `-- util-deprecate@1.0.2 

2017-11-10T05:43:40.5425994Z | | | | `-- typedarray@0.0.6 

2017-11-10T05:43:40.5425994Z | | | `-- retry@0.10.0 

2017-11-10T05:43:40.5425994Z | | +-- npm-user-validate@0.1.5 

2017-11-10T05:43:40.5425994Z | | +-- npmlog@2.0.4 

2017-11-10T05:43:40.5425994Z | | | +-- are-we-there-yet@1.1.2 

2017-11-10T05:43:40.5425994Z | | | | `-- delegates@1.0.0 

2017-11-10T05:43:40.5425994Z | | | `-- gauge@1.2.7 

2017-11-10T05:43:40.5425994Z | | | +-- has-unicode@2.0.0 

2017-11-10T05:43:40.5425994Z | | | +-- lodash.pad@4.4.0 

2017-11-10T05:43:40.5425994Z | | | | +-- lodash._baseslice@4.0.0 

2017-11-10T05:43:40.5425994Z | | | | +-- lodash._basetostring@4.12.0 

2017-11-10T05:43:40.5425994Z | | | | `-- lodash.tostring@4.1.4 

2017-11-10T05:43:40.5425994Z | | | +-- lodash.padend@4.5.0 

2017-11-10T05:43:40.5425994Z | | | `-- lodash.padstart@4.5.0 

2017-11-10T05:43:40.5425994Z | | +-- once@1.4.0 

2017-11-10T05:43:40.5425994Z | | +-- opener@1.4.1 

2017-11-10T05:43:40.5425994Z | | +-- osenv@0.1.3 

2017-11-10T05:43:40.5425994Z | | | +-- os-homedir@1.0.0 

2017-11-10T05:43:40.5425994Z | | | `-- os-tmpdir@1.0.1 

2017-11-10T05:43:40.5425994Z | | +-- path-is-inside@1.0.1 

2017-11-10T05:43:40.5425994Z | | +-- read@1.0.7 

2017-11-10T05:43:40.5425994Z | | | `-- mute-stream@0.0.5 

2017-11-10T05:43:40.5425994Z | | +-- read-installed@4.0.3 

2017-11-10T05:43:40.5425994Z | | | +-- debuglog@1.0.1 

2017-11-10T05:43:40.5425994Z | | | +-- readdir-scoped-modules@1.0.2 

2017-11-10T05:43:40.5425994Z | | | `-- util-extend@1.0.1 

2017-11-10T05:43:40.5425994Z | | +-- read-package-json@2.0.4 

2017-11-10T05:43:40.5425994Z | | | +-- glob@6.0.4 

2017-11-10T05:43:40.5425994Z | | | | `-- path-is-absolute@1.0.0 

2017-11-10T05:43:40.5425994Z | | | `-- json-parse-helpfulerror@1.0.3 

2017-11-10T05:43:40.5425994Z | | | `-- jju@1.3.0 

2017-11-10T05:43:40.5436021Z | | +-- readable-stream@2.1.5 

2017-11-10T05:43:40.5436021Z | | | +-- buffer-shims@1.0.0 

2017-11-10T05:43:40.5436021Z | | | +-- core-util-is@1.0.2 

2017-11-10T05:43:40.5436021Z | | | +-- isarray@1.0.0 

2017-11-10T05:43:40.5436021Z | | | +-- process-nextick-args@1.0.7 

2017-11-10T05:43:40.5436021Z | | | +-- string_decoder@0.10.31 

2017-11-10T05:43:40.5436021Z | | | `-- util-deprecate@1.0.2 

2017-11-10T05:43:40.5436021Z | | +-- realize-package-specifier@3.0.1 

2017-11-10T05:43:40.5436021Z | | +-- request@2.74.0 

2017-11-10T05:43:40.5436021Z | | | +-- aws-sign2@0.6.0 

2017-11-10T05:43:40.5436021Z | | | +-- aws4@1.4.1 

2017-11-10T05:43:40.5436021Z | | | +-- bl@1.1.2 

2017-11-10T05:43:40.5436021Z | | | | `-- readable-stream@2.0.6 

2017-11-10T05:43:40.5436021Z | | | | +-- core-util-is@1.0.2 

2017-11-10T05:43:40.5436021Z | | | | +-- isarray@1.0.0 

2017-11-10T05:43:40.5436021Z | | | | +-- process-nextick-args@1.0.7 

2017-11-10T05:43:40.5436021Z | | | | +-- string_decoder@0.10.31 

2017-11-10T05:43:40.5436021Z | | | | `-- util-deprecate@1.0.2 

2017-11-10T05:43:40.5436021Z | | | +-- caseless@0.11.0 

2017-11-10T05:43:40.5436021Z | | | +-- combined-stream@1.0.5 

2017-11-10T05:43:40.5436021Z | | | | `-- delayed-stream@1.0.0 

2017-11-10T05:43:40.5436021Z | | | +-- extend@3.0.0 

2017-11-10T05:43:40.5436021Z | | | +-- forever-agent@0.6.1 

2017-11-10T05:43:40.5436021Z | | | +-- form-data@1.0.0-rc4 

2017-11-10T05:43:40.5436021Z | | | | `-- async@1.5.2 

2017-11-10T05:43:40.5436021Z | | | +-- har-validator@2.0.6 

2017-11-10T05:43:40.5436021Z | | | | +-- chalk@1.1.3 

2017-11-10T05:43:40.5436021Z | | | | | +-- ansi-styles@2.2.1 

2017-11-10T05:43:40.5436021Z | | | | | +-- escape-string-regexp@1.0.5 

2017-11-10T05:43:40.5436021Z | | | | | +-- has-ansi@2.0.0 

2017-11-10T05:43:40.5446008Z | | | | | `-- supports-color@2.0.0 

2017-11-10T05:43:40.5446008Z | | | | +-- commander@2.9.0 

2017-11-10T05:43:40.5446008Z | | | | | `-- graceful-readlink@1.0.1 

2017-11-10T05:43:40.5446008Z | | | | +-- is-my-json-valid@2.13.1 

2017-11-10T05:43:40.5446008Z | | | | | +-- generate-function@2.0.0 

2017-11-10T05:43:40.5446008Z | | | | | +-- generate-object-property@1.2.0

2017-11-10T05:43:40.5446008Z | | | | | | `-- is-property@1.0.2 

2017-11-10T05:43:40.5456012Z | | | | | +-- jsonpointer@2.0.0 

2017-11-10T05:43:40.5456012Z | | | | | `-- xtend@4.0.1 

2017-11-10T05:43:40.5456012Z | | | | `-- pinkie-promise@2.0.1 

2017-11-10T05:43:40.5456012Z | | | | `-- pinkie@2.0.4 

2017-11-10T05:43:40.5456012Z | | | +-- hawk@3.1.3 

2017-11-10T05:43:40.5456012Z | | | | +-- boom@2.10.1 

2017-11-10T05:43:40.5456012Z | | | | +-- cryptiles@2.0.5 

2017-11-10T05:43:40.5456012Z npm WARN enoent ENOENT: no such file or directory, open 'd:\a\1\s\package.json'

2017-11-10T05:43:40.5456012Z | | | | +-- hoek@2.16.3 

2017-11-10T05:43:40.5466017Z npm WARN s No description

2017-11-10T05:43:40.5466017Z | | | | `-- sntp@1.0.9 

2017-11-10T05:43:40.5466017Z | | | +-- http-signature@1.1.1 

2017-11-10T05:43:40.5466017Z | | | | +-- assert-plus@0.2.0 

2017-11-10T05:43:40.5466017Z | | | | +-- jsprim@1.3.0 

2017-11-10T05:43:40.5466017Z | | | | | +-- extsprintf@1.0.2 

2017-11-10T05:43:40.5466017Z | | | | | +-- json-schema@0.2.2 

2017-11-10T05:43:40.5466017Z | | | | | `-- verror@1.3.6 

2017-11-10T05:43:40.5466017Z | | | | `-- sshpk@1.9.2 

2017-11-10T05:43:40.5466017Z | | | | +-- asn1@0.2.3 

2017-11-10T05:43:40.5466017Z | | | | +-- assert-plus@1.0.0 

2017-11-10T05:43:40.5466017Z | | | | +-- dashdash@1.14.0 

2017-11-10T05:43:40.5466017Z | | | | +-- ecc-jsbn@0.1.1 

2017-11-10T05:43:40.5466017Z | | | | +-- getpass@0.1.6 

2017-11-10T05:43:40.5466017Z | | | | +-- jodid25519@1.0.2 

2017-11-10T05:43:40.5466017Z | | | | +-- jsbn@0.1.0 

2017-11-10T05:43:40.5466017Z | | | | `-- tweetnacl@0.13.3 

2017-11-10T05:43:40.5466017Z | | | +-- is-typedarray@1.0.0 

2017-11-10T05:43:40.5466017Z | | | +-- isstream@0.1.2 

2017-11-10T05:43:40.5466017Z | | | +-- json-stringify-safe@5.0.1 

2017-11-10T05:43:40.5466017Z | | | +-- mime-types@2.1.11 

2017-11-10T05:43:40.5466017Z | | | | `-- mime-db@1.23.0 

2017-11-10T05:43:40.5466017Z | | | +-- node-uuid@1.4.7 

2017-11-10T05:43:40.5466017Z | | | +-- oauth-sign@0.8.2 

2017-11-10T05:43:40.5466017Z | | | +-- qs@6.2.1 

2017-11-10T05:43:40.5466017Z | | | +-- stringstream@0.0.5 

2017-11-10T05:43:40.5466017Z | | | +-- tough-cookie@2.3.1 

2017-11-10T05:43:40.5466017Z | | | `-- tunnel-agent@0.4.3 

2017-11-10T05:43:40.5466017Z | | +-- retry@0.10.0 

2017-11-10T05:43:40.5466017Z | | +-- rimraf@2.5.4 

2017-11-10T05:43:40.5466017Z | | +-- semver@5.1.0 

2017-11-10T05:43:40.5466017Z | | +-- sha@2.0.1 

2017-11-10T05:43:40.5466017Z | | | `-- readable-stream@2.0.2 

2017-11-10T05:43:40.5466017Z | | | +-- core-util-is@1.0.1 

2017-11-10T05:43:40.5466017Z | | | +-- isarray@0.0.1 

2017-11-10T05:43:40.5476016Z | | | +-- process-nextick-args@1.0.3 

2017-11-10T05:43:40.5476016Z | | | +-- string_decoder@0.10.31 

2017-11-10T05:43:40.5476016Z | | | `-- util-deprecate@1.0.1 

2017-11-10T05:43:40.5476016Z | | +-- slide@1.1.6 

2017-11-10T05:43:40.5476016Z | | +-- sorted-object@2.0.0 

2017-11-10T05:43:40.5476016Z | | +-- spdx-license-ids@1.2.2 

2017-11-10T05:43:40.5476016Z | | +-- strip-ansi@3.0.1 

2017-11-10T05:43:40.5476016Z | | +-- tar@2.2.1 

2017-11-10T05:43:40.5476016Z | | +-- text-table@0.2.0 

2017-11-10T05:43:40.5476016Z | | +-- uid-number@0.0.6 

2017-11-10T05:43:40.5476016Z | | +-- umask@1.1.0 

2017-11-10T05:43:40.5476016Z | | +-- validate-npm-package-license@3.0.1 

2017-11-10T05:43:40.5476016Z | | | +-- spdx-correct@1.0.2 

2017-11-10T05:43:40.5476016Z | | | `-- spdx-expression-parse@1.0.2 

2017-11-10T05:43:40.5476016Z | | | `-- spdx-exceptions@1.0.4 

2017-11-10T05:43:40.5476016Z | | +-- validate-npm-package-name@2.2.2 

2017-11-10T05:43:40.5476016Z | | | `-- builtins@0.0.7 

2017-11-10T05:43:40.5476016Z | | +-- which@1.2.11 

2017-11-10T05:43:40.5476016Z | | | `-- isexe@1.1.2 

2017-11-10T05:43:40.5476016Z | | +-- wrappy@1.0.2 

2017-11-10T05:43:40.5476016Z | | `-- write-file-atomic@1.1.4 

2017-11-10T05:43:40.5476016Z | +-- opener@1.4.2 

2017-11-10T05:43:40.5476016Z | +-- plist@2.0.1 

2017-11-10T05:43:40.5476016Z | | +-- base64-js@1.1.2 

2017-11-10T05:43:40.5476016Z | | `-- xmlbuilder@8.2.2 

2017-11-10T05:43:40.5476016Z | +-- properties-parser@0.3.1 

2017-11-10T05:43:40.5476016Z | | `-- string.prototype.codepointat@0.2.0 

2017-11-10T05:43:40.5476016Z | +-- request@2.79.0 

2017-11-10T05:43:40.5476016Z | | +-- aws-sign2@0.6.0 

2017-11-10T05:43:40.5476016Z | | +-- aws4@1.6.0 

2017-11-10T05:43:40.5476016Z | | +-- caseless@0.11.0 

2017-11-10T05:43:40.5476016Z | | +-- combined-stream@1.0.5 

2017-11-10T05:43:40.5476016Z | | | `-- delayed-stream@1.0.0 

2017-11-10T05:43:40.5476016Z | | +-- extend@3.0.1 

2017-11-10T05:43:40.5476016Z | | +-- forever-agent@0.6.1 

2017-11-10T05:43:40.5476016Z | | +-- form-data@2.1.4 

2017-11-10T05:43:40.5476016Z | | | `-- asynckit@0.4.0 

2017-11-10T05:43:40.5476016Z | | +-- har-validator@2.0.6 

2017-11-10T05:43:40.5476016Z | | | +-- commander@2.11.0 

2017-11-10T05:43:40.5476016Z | | | +-- is-my-json-valid@2.16.1 

2017-11-10T05:43:40.5476016Z | | | | +-- generate-function@2.0.0 

2017-11-10T05:43:40.5486013Z | | | | +-- generate-object-property@1.2.0 

2017-11-10T05:43:40.5486013Z | | | | | `-- is-property@1.0.2 

2017-11-10T05:43:40.5486013Z | | | | `-- jsonpointer@4.0.1 

2017-11-10T05:43:40.5486013Z | | | `-- pinkie-promise@2.0.1 

2017-11-10T05:43:40.5486013Z | | | `-- pinkie@2.0.4 

2017-11-10T05:43:40.5486013Z | | +-- hawk@3.1.3 

2017-11-10T05:43:40.5486013Z | | | +-- boom@2.10.1 

2017-11-10T05:43:40.5486013Z | | | +-- cryptiles@2.0.5 

2017-11-10T05:43:40.5486013Z | | | +-- hoek@2.16.3 

2017-11-10T05:43:40.5486013Z | | | `-- sntp@1.0.9 

2017-11-10T05:43:40.5486013Z | | +-- http-signature@1.1.1 

2017-11-10T05:43:40.5506015Z +-- semver-diff@2.1.0 

2017-11-10T05:43:40.5506015Z `-- string-length@1.0.1 

2017-11-10T05:43:40.5506015Z 

2017-11-10T05:43:40.5506015Z npm WARN s No repository field.

2017-11-10T05:43:40.5516012Z npm WARN s No README data

2017-11-10T05:43:40.5516012Z npm WARN s No license field.

2017-11-10T05:43:40.6136014Z ##[debug]Finished Building Command: node d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\code-push-cli\script\cli release-cordova "Syngenta_Visit_Report1"
 "android" --deploymentName "Staging" --rollout "100%" --build

2017-11-10T05:43:40.6136014Z ##[debug]Attempting execution of command: node d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\code-push-cli\script\cli release-cordova "Syngenta_Visit_Report1"
 "android" --deploymentName "Staging" --rollout "100%" --build

2017-11-10T05:43:41.5175965Z Running "cordova build" command:

2017-11-10T05:43:41.5175965Z 

2017-11-10T05:43:43.1816076Z 

2017-11-10T05:43:43.1816076Z You have been opted out of telemetry. To change this, run: cordova telemetry on.

2017-11-10T05:43:43.2035832Z Error: Current working directory is not a Cordova-based project.

2017-11-10T05:43:43.2186045Z [Error] Unable to build project. Please ensure that this is a Cordova project and that platform "android" was added with "cordova platform add android"

2017-11-10T05:43:43.2275838Z ##[debug]Finished Building Command: node d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\code-push-cli\script\cli logout

2017-11-10T05:43:44.1973890Z ##[debug]task result: Failed

2017-11-10T05:43:44.1973890Z ##[debug]Processed: ##vso[task.complete result=Failed;]Command failed: release-cordova

2017-11-10T05:43:44.1973890Z Command failed: release-cordova

2017-11-10T05:43:44.2023858Z ##[section]Finishing: Release update to Staging (Syngenta_Visit_Report1)

我无法解决它。有人可以帮忙吗?

2017-11-17T06:11:01.9461272Z ##[debug]Evaluating succeeded:
2017-11-17T06:11:01.9461272Z ##[debug]=> (Boolean) True
2017-11-17T06:11:01.9471275Z ##[debug]Expanded: True
2017-11-17T06:11:01.9471275Z ##[debug]Result: True
2017-11-17T06:11:01.9471275Z ##[section]Starting: Release update to Staging (Syngenta_Visit_Report1)
2017-11-17T06:11:01.9471275Z ==============================================================================
2017-11-17T06:11:01.9471275Z Task         : CodePush - Release (Cordova)
2017-11-17T06:11:01.9471275Z Description  : Release a Cordova app update to the CodePush service
2017-11-17T06:11:01.9471275Z Version      : 1.0.5
2017-11-17T06:11:01.9471275Z Author       : Microsoft Corporation
2017-11-17T06:11:01.9471275Z Help         : 
2017-11-17T06:11:01.9471275Z ==============================================================================
2017-11-17T06:11:02.2201481Z ##[debug]BUILD_SOURCEDIRECTORY=$(Build.SourceDirectory)\$\VisitReport_Br\Client Components\Main\Source\vr9-11
2017-11-17T06:11:02.2211309Z ##[debug]Swapping to working directory: $(Build.SourceDirectory)\$\VisitReport_Br\Client Components\Main\Source\vr9-11
2017-11-17T06:11:02.2221312Z ##[debug]load strings from: d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\vsts-task-lib\lib.json
2017-11-17T06:11:02.2231307Z ##[debug]load loc strings from: d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\vsts-task-lib\Strings\resources.resjson\en-US\resources.resjson
2017-11-17T06:11:02.2241434Z ##[debug]task result: Failed
2017-11-17T06:11:02.2271313Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: ENOENT: no such file or directory, uv_chdir
2017-11-17T06:11:02.2271313Z Unhandled: ENOENT: no such file or directory, uv_chdir
2017-11-17T06:11:02.2321330Z ##[section]Finishing: Release update to Staging (Syngenta_Visit_Report1)

将(build.sourcedirectory)部分下的本地路径保持为空后出错

2017-11-17T09:13:07.6795222Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
2017-11-17T09:13:07.6795222Z ZUMOAPPNAME@1.0.0 d:\a\3\s
2017-11-17T09:13:07.6795222Z `-- (empty)
2017-11-17T09:13:07.6795222Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
2017-11-17T09:13:07.6795222Z 
2017-11-17T09:13:07.6835014Z npm WARN ZUMOAPPNAME@1.0.0 No description
2017-11-17T09:13:07.8445206Z npm WARN ZUMOAPPNAME@1.0.0 No license field.
2017-11-17T09:13:07.8465194Z npm ERR! Windows_NT 10.0.14393
2017-11-17T09:13:07.8475041Z npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cordova"
2017-11-17T09:13:07.8475041Z npm ERR! node v6.10.0
2017-11-17T09:13:07.8475041Z npm ERR! npm  v3.10.10
2017-11-17T09:13:07.8475041Z npm ERR! path d:\a\3\s\node_modules\cordova\node_modules\.bin\acorn.cmd
2017-11-17T09:13:07.8475041Z npm ERR! code EEXIST
2017-11-17T09:13:07.8475041Z 
2017-11-17T09:13:07.8475041Z npm ERR! Refusing to delete d:\a\3\s\node_modules\cordova\node_modules\.bin\acorn.cmd: ..\acorn\bin\acorn symlink target is not controlled by npm d:\a\3\s\node_modules\cordova\node_modules\acorn
2017-11-17T09:13:07.8475041Z npm ERR! File exists: d:\a\3\s\node_modules\cordova\node_modules\.bin\acorn.cmd
2017-11-17T09:13:07.8475041Z npm ERR! Move it away, and try again.
2017-11-17T09:13:07.8475041Z 
2017-11-17T09:13:07.8475041Z npm ERR! Please include the following file with any support request:
2017-11-17T09:13:07.8475041Z npm ERR!     d:\a\3\s\Client Components\Main\Source\vr9-11\npm-debug.log
2017-11-17T09:13:07.8475041Z npm ERR! code 1
2017-11-17T09:13:07.9305055Z ##[debug]load strings from: d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\vsts-task-lib\lib.json
2017-11-17T09:13:07.9325060Z Unhandled: Command failed: npm install cordova
2017-11-17T09:13:07.9325060Z ##[debug]load loc strings from: d:\a\_tasks\CodePushReleaseCordova_f5990527-f512-4c14-9f8e-1254240dc3cb\1.0.5\node_modules\vsts-task-lib\Strings\resources.resjson\en-US\resources.resjson
2017-11-17T09:13:07.9325060Z ##[debug]task result: Failed
2017-11-17T09:13:07.9365053Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: Command failed: npm install cordova
2017-11-17T09:13:07.9415050Z ##[section]Finishing: Release update to Staging (Syngenta_Visit_Report1)

完整的日志在这里

4

2 回答 2

0

这是因为CodePush任务是在默认工作目录下执行命令造成code-push release-cordova$(Build.SourcesDirectory)

由于您的 cordova 应用程序不在构建 repo 的根目录中,因此该任务无法code-push release-cordova在默认工作目录中执行命令。

我添加了一个问题Can not specify the directory to execute command code-push release-cordova,你可以跟进。

现在,您可以使用以下任何解决方法来构建您的 cordova 应用程序。

解决方法 1:仍然通过添加变量来使用 CodePush 任务Build.SourceDirectory

CodePush 任务也可以解析变量Build.SourceDirectory,因此您可以使用 VARiables 选项卡中的值定义此变量 $(Build.SourcesDirectory)\path\to\cordova\app(以下是示例)。

在此处输入图像描述

构建此任务时,它首先查找变量Build.SourcesDirectory的值(如果值为空,则在 中查找值Build.SourcesDirectory)。

解决方法 2:使用命令行任务而不是 CodePush 任务

命令行任务的设置如下:

工具:cd

论据:path/to/your/cordova/app & code-push login <token> & code-push release-cordova AppName OS

下面是一个示例设置:

在此处输入图像描述

注意:您应该使用安装代码推送的私人代理。如果你想使用托管代理,你应该先安装代码推送npm install -g code-push-cli


对于 TFVC 存储库,您应该使用相对路径而不是$\VisitReport_Br\Client Components\Main\Source\vr9-11.

假设 cordova 应用程序位于Client Components\Main\Source\vr9-11TFVC 存储库的相对路径中$\VisitReport_Br,如下所示:

TFVC Root 
    |____Client Components
                |____Main
                       |____Source
                               |____vr9-11
  • 在获取源步骤中,如果您将本地地图路径留空:

    在此处输入图像描述

    您应该Build.SourceDirectory使用 value指定变量$(Build.SourcesDirectory)\Client Components\Main\Source\vr9-11

    在此处输入图像描述

  • 在获取源步骤中,如果您指定了本地地图路径(test如下例所示):

    在此处输入图像描述

    您应该Build.SourceDirectory使用 value指定变量$(Build.SourcesDirectory)\test\Client Components\Main\Source\vr9-11

    在此处输入图像描述

注意: Build.SourceDirectory是用户定义的变量,Build.SourcesDirectory(不同于Build.SourceDirectory,有s)是预定义的变量。

于 2017-11-13T07:39:40.040 回答
0

为了解决这个错误: 请在 CodePush 任务之前添加两个任务:

1) 使用此设置添加 npm 任务

https://drive.google.com/open?id=1H4bWAMruzfOs90xOLxgjadAd7DihaVH4

2)在 npm 任务之后,添加具有以下设置的命令行任务

https://drive.google.com/open?id=1bxd54kVgW4zGRwhsH_JKz_cjc1wYZ-No

然后检查Cordova命令是否可以正确执行

然后,如果您指定了变量 Build.SourceDirectory

作为 $(Build.SourcesDirectory)\path 到您的应用程序

删除它(变量),因为您已经在 GET SOURCES 中指定了路径

在这种情况下,您不需要添加“Build.SourceDirectory”变量。现在,您将工作目录指定为“d:\a\3\s\app 路径”,它不应该存在于构建代理上,但任务没有报告该错误。

该任务表明它找不到 config.xml,因为该文件存在于“d:\a\3\s”而不是“d:\a\3\s\app 路径”下。

因此删除“Build.SourceDirectory”变量并运行构建以检查

上述步骤应该适用于给定的问题

于 2017-11-22T07:59:39.237 回答