0
我正在嘗試將Jenkins配置爲用於我的團隊,該團隊在node.js項目上工作。我們大部分項目都使用了jasmine-node。Jenkins jasmine-node命令未找到
我有一個jenkins實例由org中的另一個組管理,它識別node和npm。
我跑了「故宮安裝-g茉莉節點」作爲詹金斯的工作之一,並在coonsole輸出說,這是全成:
Building on master in workspace C:\.jenkins\workspace\ttm-closr
> git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.cerner.com/ApplicationServices/ttm-closr.git
Fetching upstream changes from https://github.cerner.com/ApplicationServices/ttm-closr.git
> git --version
using .gitcredentials to set credentials
> git config --local credential.helper store --file=\"C:\Temp\git2392678818489855660.credentials\"
> git fetch --tags --progress https://github.cerner.com/ApplicationServices/ttm-closr.git +refs/heads/*:refs/remotes/origin/*
> git config --local --remove-section credential
> git rev-parse "origin/master^{commit}"
Checking out Revision 2b8831b19eb22f5d38652ab0b2dd230e2e5cf5d8 (origin/master)
> git config core.sparsecheckout
> git checkout -f 2b8831b19eb22f5d38652ab0b2dd230e2e5cf5d8
> git rev-list 2b8831b19eb22f5d38652ab0b2dd230e2e5cf5d8
[ttm-closr] $ sh -xe C:\Temp\hudson1199475728575930889.sh
+ npm install -g jasmine-node
C:\Windows\system32\config\systemprofile\AppData\Roaming\npm\jasmine-node -> C:\Windows\system32\config\systemprofile\AppData\Roaming\npm\node_modules\jasmine-node\bin\jasmine-node
[email protected] C:\Windows\system32\config\systemprofile\AppData\Roaming\npm\node_modules\jasmine-node
â」œâ」€â」€ [email protected]
â」œâ」€â」€ [email protected]
â」œâ」€â」€ [email protected]
â」œâ」€â」€ [email protected]
â」œâ」€â」€ [email protected] ([email protected])
â」œâ」€â」€ [email protected]
â」œâ」€â」€ [email protected]
â」」â」€â」€ [email protected] ([email protected], [email protected])
Sending e-mails to: [email protected]
Finished: SUCCESS
但是當我運行在詹金斯茉莉花測試外殼作業命令'茉莉節點'。那麼服務器詹金斯說,茉莉節點命令沒有找到,如下圖所示:
Building on master in workspace C:\.jenkins\workspace\ttm-closr
> git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.cerner.com/ApplicationServices/ttm-closr.git
Fetching upstream changes from https://github.cerner.com/ApplicationServices/ttm-closr.git
> git --version
using .gitcredentials to set credentials
> git config --local credential.helper store --file=\"C:\Temp\git7724050299130064334.credentials\"
> git fetch --tags --progress https://github.cerner.com/ApplicationServices/ttm-closr.git +refs/heads/*:refs/remotes/origin/*
> git config --local --remove-section credential
> git rev-parse "origin/master^{commit}"
Checking out Revision 2b8831b19eb22f5d38652ab0b2dd230e2e5cf5d8 (origin/master)
> git config core.sparsecheckout
> git checkout -f 2b8831b19eb22f5d38652ab0b2dd230e2e5cf5d8
> git rev-list 2b8831b19eb22f5d38652ab0b2dd230e2e5cf5d8
[ttm-closr] $ sh -xe C:\Temp\hudson2835855030225455242.sh
+ jasmine-node .
C:\Temp\hudson2835855030225455242.sh: line 2: jasmine-node: command not found
Build step 'Execute shell' marked build as failure
Sending e-mails to: [email protected]
[BFA] Scanning build for known causes...
[BFA] Done. 0s
Finished: FAILURE
我不知道如何在詹金斯箱安裝茉莉節點。
我必須將茉莉花節點添加到PATH才能正常工作嗎?如果是的話,我該怎麼做?
請指教,
感謝