azure-pipelines-spfx-templates icon indicating copy to clipboard operation
azure-pipelines-spfx-templates copied to clipboard

working_directory value

Open svarukala opened this issue 5 years ago • 0 comments

In my testing with a repo that has the SPFx project in the root folder, when I set working_directory to empty value, the pipeline was failing.

Failing at this job: SPFx package solution 
Starting: SPFx build
==================================================
Task         : gulp
Description  : Run the gulp Node.js streaming task-based build system
Version      : 1.166.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/gulp
===================================================
##[error]Unhandled: Not found gulpFile: /gulpfile.js
Finishing: SPFx build

Then I changed the working_directory value to '.'. Then the pipeline ran successfully.

Starting: SPFx build
==============================================================================
Task         : gulp
Description  : Run the gulp Node.js streaming task-based build system
Version      : 1.166.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/gulp
==============================================================================
/usr/local/bin/gulp build --gulpfile /home/vsts/work/1/s/gulpfile.js
Build target: DEBUG
[01:31:25] Using gulpfile ~/work/1/s/gulpfile.js
[01:31:25] Starting gulp
[01:31:25] Starting 'build'...
[01:31:25] Starting subtask 'configure-sp-build-rig'...
[01:31:25] Finished subtask 'configure-sp-build-rig' after 4.06 ms
[01:31:25] Starting subtask 'pre-copy'...
[01:31:25] Finished subtask 'pre-copy' after 2.62 ms
[01:31:25] Starting subtask 'copy-static-assets'...
[01:31:25] Starting subtask 'sass'...
[01:31:25] Finished subtask 'copy-static-assets' after 27 ms
[01:31:25] Finished subtask 'sass' after 160 ms
[01:31:25] Starting subtask 'tslint'...
[01:31:26] [tslint] tslint version: 5.12.1
[01:31:26] Starting subtask 'tsc'...
[01:31:26] [tsc] typescript version: 3.3.4000
[01:31:29] Finished subtask 'tsc' after 3.18 s
[01:31:29] Finished subtask 'tslint' after 4.04 s
[01:31:29] Starting subtask 'post-copy'...
[01:31:29] Finished subtask 'post-copy' after 94 μs
[01:31:29] Finished 'build' after 4.22 s
[01:31:30] ==================[ Finished ]==================
[01:31:30] Project spfx-projs version:0.0.1
[01:31:30] Build tools version:3.12.1
[01:31:30] Node version:v10.19.0
[01:31:30] Total duration:7.04 s

Finishing: SPFx build

svarukala avatar Mar 20 '20 01:03 svarukala