30.6. Jenkins

30.6.1. WebAPI

# 获取队列ID为891的信息
/queue/item/891/api/json
{
    "_class": "hudson.model.Queue$LeftItem",
    "actions": [
        {
            "_class": "hudson.model.ParametersAction",
            "parameters": [
                {
                    "_class": "hudson.model.BooleanParameterValue",
                    "name": "CALLBACK_ENABLE",
                    "value": true
                },
                {
                    "_class": "hudson.model.StringParameterValue",
                    "name": "GIT_URL",
                    "value": "http://172.16.100.96:9980/lihan/test-com-0522.git"
                },
                {
                    "_class": "hudson.model.StringParameterValue",
                    "name": "BRANCH_OR_TAG",
                    "value": "1.0.0"
                },
                {
                    "_class": "hudson.model.StringParameterValue",
                    "name": "CMP_BASE_URL",
                    "value": "http://127.0.0.1:58080/rcserver"
                },
                {
                    "_class": "hudson.model.StringParameterValue",
                    "name": "VERSION_ID",
                    "value": "1793546306960781312"
                },
                {
                    "_class": "hudson.model.StringParameterValue",
                    "name": "CREDENTIALS_ID",
                    "value": "chenjie20240522"
                }
            ]
        },
        {
            "_class": "hudson.model.CauseAction",
            "causes": [
                {
                    "_class": "hudson.model.Cause$UserIdCause",
                    "shortDescription": "由用户 陈洁 启动",
                    "userId": "chenjie",
                    "userName": "陈洁"
                }
            ]
        }
    ],
    "blocked": false,
    "buildable": false,
    "id": 891,
    "inQueueSince": 1716802289344,
    "params": "\nCALLBACK_ENABLE=true\nGIT_URL=http://172.16.100.96:9980/lihan/test-com-0522.git\nBRANCH_OR_TAG=1.0.0\nCMP_BASE_URL=http://127.0.0.1:58080/rcserver\nVERSION_ID=1793546306960781312\nCREDENTIALS_ID=chenjie20240522",
    "stuck": false,
    "task": {
        "_class": "org.jenkinsci.plugins.workflow.job.WorkflowJob",
        "name": "richinfo-code-cloc",
        "url": "http://jenkins.waixin.ren:8080/job/richinfo-cmp-task/job/richinfo-code-cloc/",
        "color": "red"
    },
    "url": "queue/item/891/",
    "why": null,
    "cancelled": false,
    "executable": {
        "_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
        "number": 157,
        "url": "http://jenkins.waixin.ren:8080/job/richinfo-cmp-task/job/richinfo-code-cloc/157/"
    }
}