100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Example of curl with POST in ci/cd pipeline
Michal Rutka5d95cc4afb10
diff --git a/.gitlab-ci.yml b/.gitlab-ci.ymlindex bfca3fe71..65ed866a1 100644--- a/.gitlab-ci.yml+++ b/.gitlab-ci.yml@@ -124,12 +124,28 @@ deploy-master:delete aws cloudformation stack:image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:lateststage: cleanup+ before_script:+ - |-+ PAYLOAD=$(cat << JSON+ {+ "select":{"include":"ALL_EXCEPT_PATH"},+ "type":{"predicateType":"string","value":"urn:openremote:asset:flight"}+ }+ JSON+ )+ - echo $PAYLOAD+ - export OR_ENDPOINT=$(aws cloudformation describe-stacks --stack-name openremote+ --query "Stacks[0].Outputs[?OutputKey=='InstanceIP'].OutputValue" --output text)+ - >+ curl -X POST --insecure https://$OR_ENDPOINT/api/master/asset/query+ --header 'Content-Type: application/json; charset=utf-8'+ --data-binary "$PAYLOAD"script:- aws cloudformation delete-stack --stack-name $AWS_STACK_NAME- aws cloudformation wait stack-delete-complete --stack-name $AWS_STACK_NAMEallow_failure: true # set when:manual optional and not blockingrules:- if: $CI_COMMIT_BRANCH == "master"- - when: delayed+ when: delayedstart_in: '8 hours'- when: manual