1
工作流程,我想創建如何正確使用EnvInject Jenkins插件?
我不是這樣的例外:
[EnvInject] - Loading node environment variables.
Building remotely on master-worker (lucid) in workspace /data/jenkins/workspace/QA-350_MultiJob
[QA-350_MultiJob] $ /bin/sh -xe /tmp/hudson757569632298940894.sh
+ curl --user **** -X POST --header Content-Type: application/json --header Accept: */* -d {
"description": "string",
"mode": "DEFAULT",
"name": "string",
"start_time": "2015-11-05T13:26:40.626Z",
"tags": [
"string"
]
} https://****
+ jq .id
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 144 0 286 --:--:-- --:--:-- --:--:-- 286
0 33 0 33 0 144 49 215 --:--:-- --:--:-- --:--:-- 0
+ ID = "563c8d3ae4b0bf061cd3d999"
/tmp/hudson757569632298940894.sh: 1: ID: not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
雖然@freebourn有很好的建議,但實際的錯誤顯示'ID = $(...)'失敗,因爲在shell中,在一個賦值中不應該有空格:'ID = $(...) ' –
下一次,請給我們失敗的代碼(不是它的圖像,一些關鍵細節被遮住)。 – Arran