Get build execution log

Get build execution log

get

Get the execution log information for the specified build.

Path parameters
buildRunSeqinteger · int32Required
Responses
200
OK
*/*
get
GET /v1/build/run/log/{buildRunSeq} HTTP/1.1
Host: 
Accept: */*
200

OK

[
  {
    "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"
        }
      }
    ]
  }
]

Was this helpful?