private void deploy()

in src/com/epam/digital/data/platform/pipelines/stages/impl/lowcode/UploadBusinessProcessChanges.groovy [55:72]


    private void deploy(String file, String token) {
        try {
            context.logger.info("Deploying ${file}")
            context.script.httpRequest url: "${BusinessProcMgmtSys.URL}/${BusinessProcMgmtSys.DEPLOY_API_PATH}",
                    httpMode: 'POST',
                    uploadFile: file,
                    contentType: 'APPLICATION_OCTETSTREAM',
                    wrapAsMultipart: true,
                    multipartName: file,
                    consoleLogResponseBody: context.logLevel == "DEBUG",
                    quiet: context.logLevel != "DEBUG",
                    customHeaders: [[maskValue: true, name: 'X-Access-Token', value: token]],
                    validResponseCodes: "200"
            context.logger.info("${file} have been succussfully deployed")
        } catch (any) {
            context.logger.error("Failed to deploy ${file}")
        }
    }