Yuki Takei 9 лет назад
Родитель
Сommit
040c6bcc6b
1 измененных файлов с 17 добавлено и 13 удалено
  1. 17 13
      wercker.yml

+ 17 - 13
wercker.yml

@@ -107,16 +107,20 @@ trigger-crowi-plus-docker:
   steps:
     - script:
       name: trigger crowi-plus-docker release pipeline
-      code: >
-        curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WERCKER_TOKEN" https://app.wercker.com/api/v3/runs -d
-        '{
-          "pipelineId": "$TARGET_PIPELINE_ID",
-          "sourceRunId": "$WERCKER_RUN_ID",
-          "branch": "release",
-          "envVars": [
-            {
-              "key": "RELEASE_VERSION",
-              "value": "$RELEASE_VERSION"
-            }
-          ]
-        }'
+      code: |-  # strip linebreak
+        curl -X POST
+          -H "Content-Type: application/json"
+          -H "Authorization: Bearer $WERCKER_TOKEN"
+          https://app.wercker.com/api/v3/runs
+          -d
+            '{
+              "pipelineId": "$TARGET_PIPELINE_ID",
+              "sourceRunId": "$WERCKER_RUN_ID",
+              "branch": "release",
+              "envVars": [
+                {
+                  "key": "RELEASE_VERSION",
+                  "value": "$RELEASE_VERSION"
+                }
+              ]
+            }'