GET /v1/build/run/log/{buildRunSeq} HTTP/1.1
Accept: */*
[
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildRunSeq": 1,
"runState": "DONE",
"buildSeq": 1,
"registryProjectId": 27,
"externalRegistrySeq": 0,
"buildServerHost": "topic:build-20230623-ws-namespace-thingcluster",
"dbLog": false,
"buildStepRuns": [
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "CODE_DOWN",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 1,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "CODE_DOWN",
"repositoryType": "GIT",
"stepTitle": "code repository task",
"repositoryUrl": "github.com/codefresh-contrib/gradle-sample-app.git",
"branchName": "master",
"codeSaveDir": "repo",
"commonType": "COMMON",
"protocolType": "https"
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "USER_TASK",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 2,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "USER_TASK",
"stepTitle": "user task",
"cmd": [
"mvn",
"clean",
"install"
],
"workingDir": "/build",
"imageName": "build-api-test-gradle",
"imageTag": "8u292-rmsoft",
"dockerVolumeMountVOList": [
{
"containerPath": "/build",
"hostPath": "$PWD/repo"
}
]
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "FTP",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 3,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "FTP",
"stepTitle": "file(FTP) task",
"url": "test-ftp.gradle-sample-test",
"ftpType": "SFTP",
"username": "runapps",
"sourceFiles": "/data/dataset",
"remoteDirectory": "data/gradle-sample-dataset",
"ftpExecType": "DIR_FTP_DOWN"
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "HTTP",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 4,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "HTTP",
"stepTitle": "REST call task",
"url": "https://priv-regi.cocktailcloud.io/api/gradle-sample-dataset",
"httpMode": "GET",
"ignoreSslErrors": false,
"username": "admin",
"timeout": 5,
"validResponseCodes": "200",
"outputFile": "project-list.txt",
"consoleLogResponseBody": false
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "SHELL",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 5,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "SHELL",
"stepTitle": "script task",
"shellType": "SCRIPT",
"command": "echo \">>> move app source\"\ncd repo\n\necho \">>> node_modules compression\"\ntar -cf node_modules.tar node_modules/\n\nls -al"
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "CREATE_IMAGE",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 6,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "CREATE_IMAGE",
"buildStepSeq": 5,
"exitCode": "0",
"dockerFileType": "CONTENTS",
"stepTitle": "image bulid task",
"dockerFile": "FROM gradle:6.9.2-jdk8",
"severity": "",
"registryId": 27,
"registryName": "dev",
"imageTag": "8u292-rmsoft",
"imageName": "buildapi-test-gradle"
}
}
]
}
]Get the list of image tags for the specified build.
Sorting criteria column('TAG' or 'IMAGE_SIZE' or 'END_TIME')(default : 'END_TIME')
Sorting Order('DESC' or 'ASC')(default : 'DESC)
OK
OK
DELETE /v1/build/{buildSeq} HTTP/1.1
Accept: */*
GET /v1/build/{buildSeq}/images HTTP/1.1
Accept: */*
[
{
"buildSeq": 1,
"registryImagePath": "dev/build-sapi-test-gradle",
"registryProjectId": 27,
"registryName": "dev",
"imageName": "build-api-test-gradle",
"externalRegistrySeq": 0,
"tags": [
{
"buildRunSeq": 1,
"tag": "1.4",
"runDesc": "bulid run test",
"imageUrl": "dev.cocktailcloud.io/ops/buil-dapi-test-gradle",
"imageSize": 133745493,
"imageDigest": "sha256:30c1930cbee0c55a2ab23708866b8b9c6f555b17382df716d1e675eefbf5083b",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"buildServerName": ""
}
]
}
][
{
"buildName": "build-test",
"buildDesc": "bulid test",
"registryName": "dev",
"imageName": "build-api-test-gradle",
"accountSeq": 1,
"registryProjectId": 27,
"externalRegistrySeq": 0,
"buildServerHost": "topic:build-20230623-ws-namespace-thingcluster",
"buildServerTlsVerify": "N",
"buildServerCacrt": "",
"buildServerClientCert": "",
"buildServerClientKey": "",
"buildRunSeq": 1,
"buildSeq": 1,
"buildNo": 1,
"runType": "REMOVE",
"runDesc": "build run test",
"runState": "CREATED",
"autotagUseYn": "N",
"autotagPrefix": "test",
"autotagSeqType": "DATETIME",
"callbackUrl": "http://dashboard:3000/callback",
"imageUrl": "dev.cocktailcloud.io/ops/build-api-test-gradle",
"imageSize": 133745493,
"pipelineSeq": 0,
"beginTime": "2022-12-02T08:42:43.000+00:00",
"runTimeBySec": 0,
"buildStepRuns": [
{
"buildStepRunSeq": 1,
"stepType": "DELETE",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 1,
"runTimeBySec": 57,
"useFlag": true
}
],
"possibleActions": [
"VIEW",
"BUILD",
"LOG",
"REMOVE"
]
}
]POST /v1/build/run/{buildSeq} HTTP/1.1
Accept: */*
[
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildName": "build-test",
"buildDesc": "build-test",
"registryName": "dev",
"imageName": "build-api-test-gradle",
"accountSeq": 1,
"registryProjectId": 27,
"externalRegistrySeq": 0,
"buildServerHost": "topic:build-20230623-ws-namespace-thingcluster",
"buildServerTlsVerify": "N",
"buildServerCacrt": "",
"buildServerClientCert": "",
"buildServerClientKey": "",
"buildRunSeq": 1,
"buildSeq": 1,
"buildNo": 1,
"runType": "BUILD",
"runDesc": "Build run test",
"runState": "DONE",
"autotagUseYn": "N",
"autotagPrefix": "test",
"autotagSeqType": "DATETIME",
"tagName": "8u292-rmsoft",
"callbackUrl": "http://dashboard:3000/callback",
"imageUrl": "dev.cocktailcloud.io/ops/build-api-test-gradle",
"imageSize": 133745493,
"imageDigest": "sha256:30c1930cbee0c55a2ab23708866b8b9c6f555b17382df716d1e675eefbf5083b",
"pipelineSeq": 0,
"relatedPipelineInfo": {
"pipelineContainerSeq": 0,
"pipelineWorkloadSeq": 0,
"namespaceName": "cocktail-system",
"workloadName": "cocktail-api",
"containerName": "api",
"componentSeq": 0,
"useYn": "Y",
"accountSeq": 1,
"serviceSeq": 0,
"appmapSeq": 0,
"clusterId": "thingcluster"
},
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"buildStepRuns": [
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "CODE_DOWN",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 1,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "CODE_DOWN",
"repositoryType": "GIT",
"stepTitle": "code repository task",
"repositoryUrl": "github.com/gradle-sample-app.git",
"branchName": "master",
"codeSaveDir": "repo",
"commonType": "COMMON",
"protocolType": "https"
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "USER_TASK",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 2,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "USER_TASK",
"stepTitle": "user task",
"cmd": [
"mvn",
"clean",
"install"
],
"workingDir": "/build",
"imageName": "build-api-test-gradle",
"imageTag": "8u292-rmsoft",
"dockerVolumeMountVOList": [
{
"containerPath": "/build",
"hostPath": "$PWD/repo"
}
]
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "FTP",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 3,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "FTP",
"stepTitle": "file(FTP) task",
"url": "test-ftp.gradle-sample-test",
"ftpType": "SFTP",
"username": "runapps",
"sourceFiles": "/data/dataset",
"remoteDirectory": "data/gradle-sample-dataset",
"ftpExecType": "DIR_FTP_DOWN"
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "HTTP",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 4,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "HTTP",
"stepTitle": "REST call task",
"url": "https://priv-regi.cocktailcloud.io/api/gradle-sample-dataset",
"httpMode": "GET",
"ignoreSslErrors": false,
"username": "admin",
"timeout": 5,
"validResponseCodes": "200",
"outputFile": "project-list.txt",
"consoleLogResponseBody": false
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "SHELL",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 5,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "SHELL",
"stepTitle": "script task",
"shellType": "SCRIPT",
"command": "echo \">>> move app source\"\ncd repo\n\necho \">>> node_modules compression\"\ntar -cf node_modules.tar node_modules/\n\nls -al"
}
},
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildStepRunSeq": 1,
"buildStepSeq": 1,
"buildRunSeq": 1,
"stepType": "CREATE_IMAGE",
"stepConfig": "",
"stepState": "WAIT",
"stepOrder": 6,
"logId": "zgq0ng-1.679.2036-create_image",
"log": "",
"beginTime": "2022-12-02T08:42:43.000+00:00",
"endTime": "2022-12-02T08:43:40.000+00:00",
"runTimeBySec": 57,
"useFlag": true,
"buildStepConfig": {
"stepType": "CREATE_IMAGE",
"buildStepSeq": 5,
"exitCode": "0",
"dockerFileType": "CONTENTS",
"stepTitle": "image build task",
"dockerFile": "FROM gradle:6.9.2-jdk8",
"severity": "",
"registryId": 27,
"registryName": "dev",
"imageTag": "8u292-rmsoft",
"imageName": "build-api-test-gradle"
}
}
],
"possibleActions": [
"VIEW",
"BUILD",
"LOG",
"REMOVE"
]
}
]Create a build.
callback URL
Build modification model
Account number (your system's account number)
1automatic tagging usage status (enabled: Y, unused: N)
Ntestautotag sequence number type('DATETIME' or 'SEQUENCE')
DATETIMEbuild testEdit type (New: N)
NExternal registry number (number of the external registry to store build images).
0Image name (name of the image to be built)
build-api-test-gradleRegistry name (name of the registry to store the build image)
devRegistry project ID (project ID of the registry to store the build image)
27Image tag name (tag name of the image to be built)
8u292-rmsoftOK
OK
POST /v1/build HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2220
{
"accountSeq": 1,
"autotagUseYn": "N",
"autotagPrefix": "test",
"autotagSeqType": "DATETIME",
"buildSteps": [
{
"stepType": "CODE_DOWN",
"useFlag": true,
"buildStepSeq": 0,
"buildStepConfig": {
"stepType": "CODE_DOWN",
"repositoryType": "GIT",
"stepTitle": "Code repository task",
"repositoryUrl": "github.com/codefresh-contrib/gradle-sample-app.git",
"branchName": "master",
"codeSaveDir": "repo",
"commonType": "COMMON",
"protocolType": "https"
},
"stepOrder": 1
},
{
"stepType": "USER_TASK",
"useFlag": true,
"buildStepSeq": 1,
"buildStepConfig": {
"stepType": "USER_TASK",
"stepTitle": "user task",
"cmd": [
"mvn",
"clean",
"install"
],
"workingDir": "/build",
"imageName": "build-api-test-gradle",
"imageTag": "8u292-rmsoft",
"dockerVolumeMountVOList": [
{
"containerPath": "/build",
"hostPath": "$PWD/repo"
}
]
},
"stepOrder": 2
},
{
"stepType": "FTP",
"useFlag": true,
"buildStepSeq": 2,
"buildStepConfig": {
"stepType": "FTP",
"stepTitle": "file(FTP) task",
"url": "test-ftp.gradle-sample-test",
"ftpType": "SFTP",
"username": "runapps",
"sourceFiles": "/data/dataset",
"remoteDirectory": "data/gradle-sample-dataset",
"ftpExecType": "DIR_FTP_DOWN"
},
"stepOrder": 1
},
{
"stepType": "HTTP",
"useFlag": true,
"buildStepSeq": 3,
"buildStepConfig": {
"stepType": "CODE_DOWN",
"repositoryType": "GIT",
"stepTitle": "Source Download",
"repositoryUrl": "github.com/codefresh-contrib/gradle-sample-app.git",
"branchName": "master",
"codeSaveDir": "repo",
"commonType": "COMMON",
"protocolType": "https"
},
"stepOrder": 3
},
{
"stepType": "SHELL",
"useFlag": true,
"buildStepSeq": 4,
"buildStepConfig": {
"stepType": "SHELL",
"stepTitle": "Script task.",
"shellType": "SCRIPT",
"command": "echo \">>> move app source \"\ncd repo\n\necho \">>> node_modules Compression\"\ntar -cf node_modules.tar node_modules/\n\nls -al"
},
"stepOrder": 4
},
{
"stepType": "CREATE_IMAGE",
"useFlag": true,
"buildStepSeq": 5,
"buildStepConfig": {
"stepType": "CREATE_IMAGE",
"buildStepSeq": 5,
"exitCode": "0",
"dockerFileType": "CONTENTS",
"stepTitle": "Image Build task",
"dockerFile": "FROM gradle:6.9.2-jdk8",
"severity": "",
"registryId": 27,
"registryName": "dev",
"imageTag": "8u292-rmsoft",
"imageName": "buildapi-test-gradle"
},
"stepOrder": 5
}
],
"description": "build test",
"editType": "N",
"externalRegistrySeq": 0,
"imageName": "build-api-test-gradle",
"registryName": "dev",
"registryProjectId": 27,
"tagName": "8u292-rmsoft"
}[
{
"useYn": "Y",
"created": "2022-12-02 08:42:46",
"updated": "2022-12-02 08:42:46",
"buildSeq": 1,
"buildNo": 1,
"buildName": "build-test",
"buildDesc": "build test",
"accountSeq": 1,
"registryProjectId": 27,
"registryName": "dev",
"imageName": "build-api-test-gradle",
"autotagUseYn": "N",
"autotagPrefix": "test",
"autotagSeqType": "DATETIME",
"tagName": "8u292-rmsoft",
"externalRegistrySeq": 0,
"buildServerHost": "topic:build-20230623-ws-namespace-thingcluster",
"buildServerTlsVerify": "N",
"buildServerCacrt": "",
"buildServerClientCert": "",
"buildServerClientKey": "",
"buildSteps": [
{
"stepType": "CODE_DOWN",
"useFlag": true,
"buildStepSeq": 0,
"buildStepConfig": {
"stepType": "CODE_DOWN",
"repositoryType": "GIT",
"stepTitle": "Code repository task.",
"repositoryUrl": "github.com/codefresh-contrib/gradle-sample-app.git",
"branchName": "master",
"codeSaveDir": "repo",
"commonType": "COMMON",
"protocolType": "https"
},
"stepOrder": 1
},
{
"stepType": "USER_TASK",
"useFlag": true,
"buildStepSeq": 0,
"buildStepConfig": {
"stepType": "USER_TASK",
"stepTitle": "user task.",
"cmd": [
"mvn",
"clean",
"install"
],
"workingDir": "/build",
"imageName": "build-api-test-gradle",
"imageTag": "8u292-rmsoft",
"dockerVolumeMountVOList": [
{
"containerPath": "/build",
"hostPath": "$PWD/repo"
}
]
},
"stepOrder": 2
},
{
"stepType": "FTP",
"useFlag": true,
"buildStepSeq": 110,
"buildStepConfig": {
"stepType": "FTP",
"stepTitle": "file(FTP) task.",
"url": "test-ftp.gradle-sample-test",
"ftpType": "SFTP",
"username": "runapps",
"sourceFiles": "/data/dataset",
"remoteDirectory": "data/gradle-sample-dataset",
"ftpExecType": "DIR_FTP_DOWN"
},
"stepOrder": 3
},
{
"stepType": "HTTP",
"useFlag": true,
"buildStepSeq": 0,
"buildStepConfig": {
"stepType": "HTTP",
"stepTitle": "REST call task",
"url": "https://priv-regi.cocktailcloud.io/api/gradle-sample-dataset",
"httpMode": "GET",
"ignoreSslErrors": false,
"username": "admin",
"timeout": 5,
"validResponseCodes": "200",
"outputFile": "project-list.txt",
"consoleLogResponseBody": false
},
"stepOrder": 4
},
{
"stepType": "SHELL",
"useFlag": true,
"buildStepSeq": 0,
"buildStepConfig": {
"stepType": "SHELL",
"stepTitle": "script task",
"shellType": "SCRIPT",
"command": "echo \">>> move app source\"\ncd repo\n\necho \">>> node_modules compression\"\ntar -cf node_modules.tar node_modules/\n\nls -al"
},
"stepOrder": 5
},
{
"stepType": "CREATE_IMAGE",
"useFlag": true,
"buildStepSeq": 0,
"buildStepConfig": {
"stepType": "CREATE_IMAGE",
"buildStepSeq": 0,
"exitCode": "0",
"dockerFileType": "CONTENTS",
"stepTitle": "image build task",
"dockerFile": "FROM gradle:6.9.2-jdk8",
"severity": "",
"registryId": 27,
"registryName": "dev",
"imageTag": "8u292-rmsoft",
"imageName": "build-api-test-gradle"
},
"stepOrder": 6
}
],
"hostUrl": "dev.cocktailcloud.io",
"buildCount": 6,
"runningCount": 6,
"doneCount": 3,
"errorCount": 3,
"pipelineCount": 1,
"tagCount": 3,
"buildTimeAvg": 606,
"imgSizeAvg": 351720643,
"latestBuildTime": 752,
"latestImgSize": 352886544,
"latestExecTime": "2022-12-02 08:42:46"
}
]