{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorResponseBody":{"properties":{"error_code":{"description":"错误码","example":"CB.00060200","type":"string"},"error_msg":{"description":"错误描述","example":"Invalid param","type":"string"}},"type":"object"},"ShowBuildRecordBuildScript":{"properties":{"error":{"description":"返回错误信息","example":"error_message","type":"string"},"result":{"description":"构建脚本","example":"","type":"string"},"status":{"description":"返回状态信息","example":"success","type":"string"}},"type":"object"}},"description":null,"group_id":"50626d0f704e4af3adfd875e2acffcb6","host":"cloudbuild-ext.cn-north-4.myhuaweicloud.com","id":"a1f199b962994af7b0052a8e80290946","info_version":"v3","method":"get","name":"ShowBuildRecordBuildScript","parameters":{"Record_Id":{"description":"记录ID,36位数字、小写字母、'-'组组合。","in":"path","name":"record_id","pattern":"^[0-9a-z-]{36}$","required":true,"type":"string","x-example":"2cc26382-b2cb-4234-8eb0-b37d362f4d4c"}},"paths":{"/v1/record/{record_id}/build-script":{"get":{"deprecated":false,"description":"获取构建记录的构建脚本","operationId":"ShowBuildRecordBuildScript","parameters":[{"$ref":"#/parameters/Record_Id"}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK","examples":{"application/json":{"error":null,"result":"---\nversion: \"2.0\"\ntimeout:\n limit: 240\n unit: \"minute\"\ndevcloud_metadata:\n label: \"docker\"\n imageRegex:\n - \".*/codeci/((?!dotnetframework|msbuild|dotnetcore|shell).)*$\"\n buildType: \"linux\"\n jobName: \"testJobName\"\n jobId: \"6d8522e0799b4d678d08ac22210b0aff\"\n serviceType: \"codeci\"\n projectId: \"b4d3971c3988463b865f6f920846149e\"\nstages:\n stage2:\n meta:\n uuid: \"20040\"\n displayName: \"Code CheckOut\"\n env:\n dockerImage: \"swr.cn-north-7.myhuaweicloud.com/codeci/shell:shell4.2.46-git2.23-zip-1.1.0\"\n dockerArgs: \"-v /etc/localtime:/etc/localtime:ro -v /devcloud/cache/config_backup.json:/home/slave/.config/config_backup.json:ro\\\n \\ -e LC_ALL=en_US.utf8 -e LANGUAGE=en_US.utf8 --memory=6144M --cpus=2 \"\n dockerImageBackup: \"swr.cn-north-6.myhuaweicloud.com/codeci/shell:shell4.2.46-git2.23-zip-1.1.0\"\n extraDockerImage: \"swr.cn-north-7.myhuaweicloud.com/codeci/shell:shell4.2.46-git2.23-zip-1.1.0\"\n extraDockerArgs: \"-v /etc/localtime:/etc/localtime:ro -v /devcloud/cache/config_backup.json:/home/slave/.config/config_backup.json:ro\\\n \\ -e LC_ALL=en_US.utf8 -e LANGUAGE=en_US.utf8 --memory=6144M --cpus=2 \"\n extraDockerImageBackup: \"swr.cn-north-6.myhuaweicloud.com/codeci/shell:shell4.2.46-git2.23-zip-1.1.0\"\n language: \"zh-cn\"\n tasks:\n - external_pre_checkout:\n openPlatFormUrl: \"https://devcloud-backend.cn-north-7.myhuaweicloud.com:7632/wukong\"\n openPlatformProxy: \"\"\n domainName: \"testUser\"\n codehubAdapterAddress: \"https://devcloud-backend.cn-north-208.myhuaweicloud.com:7503\"\n userName: \"testUser\"\n scm:\n url: \"git@codehub.devcloud.cn-north-7.ulanqab.huawei.com:b4d3971c3988463b865f6f920846149e/aaa/Unit.git\"\n branch: \"master\"\n branchRegex: \"\"\n branchRegexMessage: \"\"\n isAutoBuild: false\n repoID: \"2111898074\"\n repoExist: true\n disableSubmodules: true\n scmType: \"codehub\"\n buildType: \"branch\"\n checkoutName: \"master\"\n depth: \"1\"\n groupName: \"b4d3971c3988463b865f6f920846149e/aaa\"\n repoName: \"Unit\"\n webUrl: \"https://devcloud.cn-north-7.ulanqab.huawei.com/codehub/2111898074/home\"\n userId: \"ae22fd035f354cfa8d82a3f1c8940446\"\n domainId: \"60021bab32fd450aa2cb89226f425e06\"\n opensourceUrl: \"https://opensource.cn-north-7.myhuaweicloud.com:8447\"\n preCondition: \"SUCCESS\"\n","status":"success"}},"schema":{"$ref":"#/definitions/ShowBuildRecordBuildScript"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"401":{"description":"Unauthorized","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"403":{"description":"Forbidden","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"404":{"description":"Not Found","schema":{"$ref":"#/definitions/ErrorResponseBody"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorResponseBody"}}},"security":[{"apig-auth-iam":[]}],"summary":"获取构建记录的构建脚本","tags":["CodeArtsBuild"],"x-api-type":"open-api","x-apigateway-ratelimit":"ten_50_min","x-internel":"false","x-is-registered":"Y","x-request-examples-url-1":"GET https://{endpoint}/v1/record/d7292509-18a9-4d7e-b503-25d327bc09cf/build-script","x-support-sdk":"Y"}}},"product_short":"CodeArtsBuild","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"APP":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"}},"summary":"获取构建记录的构建脚本","tags":"编译构建","uri":null,"version":"2.0"}