Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42178

pipeline as code/multi branch pipeline jobs events

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      What is the built in support for pipeline as code/multi branch pipeline jobs and tracking events from within that context (stages, etc)?

        Attachments

          Issue Links

            Activity

            Hide
            fengxx Ted Xiao added a comment -

            pipeline support is provided by a separate plugin splunk-devops-extend, stage is supported out of box(no additional configure is required), but currently stage information is not showed on the app , you have to get it from jenkins_statistics index

            Sample

            index=jenkins_statistics event_tag=job_event job_name=* stages
            
            {
                "build_number": 2,
                "build_url": "job/blah/2/",
                "event_tag": "job_event",
                "job_duration": 2123.701,
                "job_name": "job/blah/",
                "job_result": "SUCCESS",
                "job_started_at": "2017-02-17T18:55:02Z",
                "job_type": "Pipeline",
                "label": "master",
                "node": "(master)",
                "queue_id": 7059,
                "queue_time": 0.069,
                "scm": "git",
                "stages": [
                    {
                        "duration": 47.503,
                        "id": "23",
                        "name": "Clone Repo",
                        "pause_duration": 0.0,
                        "start_time": 1487358141,
                        "status": "SUCCESS"
                    },
                    {
                        "duration": 960.245,
                        "id": "115",
                        "name": "Static Analysis",
                        "pause_duration": 0.0,
                        "start_time": 1487358357,
                        "status": "SUCCESS"
                    },
                    {
                        "duration": 22.6,
                        "id": "273",
                        "name": "Negative API tests",
                        "pause_duration": 0.0,
                        "start_time": 1487359317,
                        "status": "SUCCESS"
                    }
                ],
                "test_summary": {
                    "duration": 0.0,
                    "failures": 0,
                    "passes": 0,
                    "skips": 0,
                    "total": 0
                },
                "trigger_by": "Branch indexing",
                "type": "completed",
                "upstream": "",
                "user": "anonymous"
            }
            
            Show
            fengxx Ted Xiao added a comment - pipeline support is provided by a separate plugin splunk-devops-extend , stage is supported out of box(no additional configure is required), but currently stage information is not showed on the app , you have to get it from jenkins_statistics index Sample index=jenkins_statistics event_tag=job_event job_name=* stages { "build_number" : 2, "build_url" : "job/blah/2/" , "event_tag" : "job_event" , "job_duration" : 2123.701, "job_name" : "job/blah/" , "job_result" : "SUCCESS" , "job_started_at" : "2017-02-17T18:55:02Z" , "job_type" : "Pipeline" , "label" : "master" , "node" : "(master)" , "queue_id" : 7059, "queue_time" : 0.069, "scm" : "git" , "stages" : [ { "duration" : 47.503, "id" : "23" , "name" : "Clone Repo" , "pause_duration" : 0.0, "start_time" : 1487358141, "status" : "SUCCESS" }, { "duration" : 960.245, "id" : "115" , "name" : "Static Analysis" , "pause_duration" : 0.0, "start_time" : 1487358357, "status" : "SUCCESS" }, { "duration" : 22.6, "id" : "273" , "name" : "Negative API tests" , "pause_duration" : 0.0, "start_time" : 1487359317, "status" : "SUCCESS" } ], "test_summary" : { "duration" : 0.0, "failures" : 0, "passes" : 0, "skips" : 0, "total" : 0 }, "trigger_by" : "Branch indexing" , "type" : "completed" , "upstream" : "", "user" : "anonymous" }
            Hide
            _mg_ mg added a comment -

            Ted Xiao very cool, looking forward to digging in. is there any thoughts or recommendations on surfacing deployment tracking with this set up? with minimal hands on usage, first thoughts would be along the lines of utilizing the other pipeline plugin to essentially call a method and "mark" moments in time as deployments with attributes (ie. environment, version, etc) that could be surfaced and visualized in the splunk app?

            Show
            _mg_ mg added a comment - Ted Xiao very cool, looking forward to digging in. is there any thoughts or recommendations on surfacing deployment tracking with this set up? with minimal hands on usage, first thoughts would be along the lines of utilizing the other pipeline plugin to essentially call a method and "mark" moments in time as deployments with attributes (ie. environment, version, etc) that could be surfaced and visualized in the splunk app?
            Hide
            henryborchers Henry Borchers added a comment -

            Is this going to be released? I want to connect my ms teams group to my pipelines but they are all multibranch and won't work.

            Show
            henryborchers Henry Borchers added a comment - Is this going to be released? I want to connect my ms teams group to my pipelines but they are all multibranch and won't work.
            Hide
            fengxx Ted Xiao added a comment -

            sorry I din't update the ticket in time, it was already released

            Show
            fengxx Ted Xiao added a comment - sorry I din't update the ticket in time, it was already released

              People

              Assignee:
              fengxx Ted Xiao
              Reporter:
              _mg_ mg
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: