在 yaml 檔裡面新增以下的code:
variables:
- group: VariableGroup的名稱
- name: otherName1
- value: 'otherValue1'
- name: otherName2
- value: 'otherValue2'
這邊特別強調Variable裡面的每一個變數開頭都要打-
,代表variable 是一個 list,而-
後面是list的每一個item。若不打-
,編譯也會幫你把variable轉成list,但list裡面物件的value編譯會自動幫你轉string,就沒辦法拿到varable group裡面的值了。
以上是我踩坑然後實驗的結果T_____T