{"action":"created","comment":{"url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/comments/237355171","pull_request_review_id":179631145,"id":237355171,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzM1NTE3MQ==","diff_hunk":"@@ -0,0 +1,156 @@\n+apiVersion: \"v1\"\n+kind: \"Template\"\n+metadata:\n+  name: \"container-pipeline-seedjob-check-ci-job\"\n+objects:\n+  - apiVersion: \"v1\"\n+    kind: \"BuildConfig\"\n+    metadata:\n+        name: ci-seed-job-check\n+    spec:\n+      strategy:\n+        type: \"JenkinsPipeline\"\n+        jenkinsPipelineStrategy:\n+          jenkinsfile: |\n+                import groovy.json.JsonSlurperClassic\n+                podTemplate(\n+                    cloud: 'openshift',\n+                    name: 'ccp-pipeline-ci',\n+                    label: 'ccp-pipeline-ci',\n+                    serviceAccount: 'jenkins',\n+                    containers: [\n+                      containerTemplate(\n+                        name: 'jnlp',\n+                        image: 'registry.centos.org/pipeline-images/ccp-openshift-slave',\n+                        ttyEnabled: true,\n+                        alwaysPullImage: true,\n+                        workingDir: '/tmp',\n+                        privileged: true,\n+                        args: '${computer.jnlpmac} ${computer.name}'\n+                      )\n+                    ],\n+                    volumes: [\n+                      hostPathVolume(\n+                        hostPath: '/var/run/docker.sock',\n+                        mountPath: '/var/run/docker.sock'\n+                      )\n+                    ]\n+                )\n+                {\n+                    node('ccp-pipeline-ci') {\n+                        /** *this variable is ment for storing complete build id for the triggred build\n+                        * it would be a string in format <build-config-name>-<build-number> */\n+                        def seedjob_build_id = \"${SEEDJOB_BUILD_ID}\"\n+                        stage(\"Wait for build to start\")\n+                        {\n+                            //Wait for the build to get a slave allocated and move from wait queue\n+                            waitForSuccessBuildToStart(seedjob_build_id)\n+                        }\n+                        stage(\"Check Index is checked out\")\n+                        {\n+                            /** *Checking for first stage (i.e.  Checkout index) expected to be 'Successful'\n+                            * this is first stage of the pipeline so index starts with '0' */\n+                            checkStageStatus(seedjob_build_id, 0, \"success\")\n+                        }\n+                        stage(\"Check parse index status\")\n+                        {\n+                            //Checking second stage (i.e. parse index) expected to be 'Successful'\n+                            checkStageStatus(seedjob_build_id, 1, \"success\")","path":"ci/ciseedjobcheck.yaml","position":58,"original_position":58,"commit_id":"3f367b308b2f6bf976192bfee0c0d52d174fa5fa","original_commit_id":"ecb87638c0fdeeeff74c080344598806166897d6","user":{"login":"bamachrn","id":8213617,"node_id":"MDQ6VXNlcjgyMTM2MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/8213617?v=4","gravatar_id":"","url":"https://api.github.com/users/bamachrn","html_url":"https://github.com/bamachrn","followers_url":"https://api.github.com/users/bamachrn/followers","following_url":"https://api.github.com/users/bamachrn/following{/other_user}","gists_url":"https://api.github.com/users/bamachrn/gists{/gist_id}","starred_url":"https://api.github.com/users/bamachrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamachrn/subscriptions","organizations_url":"https://api.github.com/users/bamachrn/orgs","repos_url":"https://api.github.com/users/bamachrn/repos","events_url":"https://api.github.com/users/bamachrn/events{/privacy}","received_events_url":"https://api.github.com/users/bamachrn/received_events","type":"User","site_admin":false},"body":"All the stages are taken as an array in openshift, so they are accessed with index like `0,1`. We have to create some search logic if we want to use stage name for matching. It is doable but not truly required at the moment.","created_at":"2018-11-29T05:13:42Z","updated_at":"2018-11-29T05:13:42Z","html_url":"https://github.com/CentOS/container-pipeline-service/pull/659#discussion_r237355171","pull_request_url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/comments/237355171"},"html":{"href":"https://github.com/CentOS/container-pipeline-service/pull/659#discussion_r237355171"},"pull_request":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659"}},"in_reply_to_id":233307858},"pull_request":{"url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659","id":226510045,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NTEwMDQ1","html_url":"https://github.com/CentOS/container-pipeline-service/pull/659","diff_url":"https://github.com/CentOS/container-pipeline-service/pull/659.diff","patch_url":"https://github.com/CentOS/container-pipeline-service/pull/659.patch","issue_url":"https://api.github.com/repos/CentOS/container-pipeline-service/issues/659","number":659,"state":"open","locked":false,"title":"[WIP]Functional tests for seed job","user":{"login":"bamachrn","id":8213617,"node_id":"MDQ6VXNlcjgyMTM2MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/8213617?v=4","gravatar_id":"","url":"https://api.github.com/users/bamachrn","html_url":"https://github.com/bamachrn","followers_url":"https://api.github.com/users/bamachrn/followers","following_url":"https://api.github.com/users/bamachrn/following{/other_user}","gists_url":"https://api.github.com/users/bamachrn/gists{/gist_id}","starred_url":"https://api.github.com/users/bamachrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamachrn/subscriptions","organizations_url":"https://api.github.com/users/bamachrn/orgs","repos_url":"https://api.github.com/users/bamachrn/repos","events_url":"https://api.github.com/users/bamachrn/events{/privacy}","received_events_url":"https://api.github.com/users/bamachrn/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-29T10:38:33Z","updated_at":"2018-11-29T05:13:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5ada929fbe4898914cb5ebab125cc7dd8a1c1fe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659/commits","review_comments_url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659/comments","review_comment_url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CentOS/container-pipeline-service/issues/659/comments","statuses_url":"https://api.github.com/repos/CentOS/container-pipeline-service/statuses/3f367b308b2f6bf976192bfee0c0d52d174fa5fa","head":{"label":"bamachrn:ci-functional","ref":"ci-functional","sha":"3f367b308b2f6bf976192bfee0c0d52d174fa5fa","user":{"login":"bamachrn","id":8213617,"node_id":"MDQ6VXNlcjgyMTM2MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/8213617?v=4","gravatar_id":"","url":"https://api.github.com/users/bamachrn","html_url":"https://github.com/bamachrn","followers_url":"https://api.github.com/users/bamachrn/followers","following_url":"https://api.github.com/users/bamachrn/following{/other_user}","gists_url":"https://api.github.com/users/bamachrn/gists{/gist_id}","starred_url":"https://api.github.com/users/bamachrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamachrn/subscriptions","organizations_url":"https://api.github.com/users/bamachrn/orgs","repos_url":"https://api.github.com/users/bamachrn/repos","events_url":"https://api.github.com/users/bamachrn/events{/privacy}","received_events_url":"https://api.github.com/users/bamachrn/received_events","type":"User","site_admin":false},"repo":{"id":66074464,"node_id":"MDEwOlJlcG9zaXRvcnk2NjA3NDQ2NA==","name":"container-pipeline-service","full_name":"bamachrn/container-pipeline-service","private":false,"owner":{"login":"bamachrn","id":8213617,"node_id":"MDQ6VXNlcjgyMTM2MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/8213617?v=4","gravatar_id":"","url":"https://api.github.com/users/bamachrn","html_url":"https://github.com/bamachrn","followers_url":"https://api.github.com/users/bamachrn/followers","following_url":"https://api.github.com/users/bamachrn/following{/other_user}","gists_url":"https://api.github.com/users/bamachrn/gists{/gist_id}","starred_url":"https://api.github.com/users/bamachrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamachrn/subscriptions","organizations_url":"https://api.github.com/users/bamachrn/orgs","repos_url":"https://api.github.com/users/bamachrn/repos","events_url":"https://api.github.com/users/bamachrn/events{/privacy}","received_events_url":"https://api.github.com/users/bamachrn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bamachrn/container-pipeline-service","description":"Code, infrastructure and deployment backend for the CentOS Container Pipeline","fork":true,"url":"https://api.github.com/repos/bamachrn/container-pipeline-service","forks_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/forks","keys_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/teams","hooks_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/hooks","issue_events_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/issues/events{/number}","events_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/events","assignees_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/assignees{/user}","branches_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/branches{/branch}","tags_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/tags","blobs_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/statuses/{sha}","languages_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/languages","stargazers_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/stargazers","contributors_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/contributors","subscribers_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/subscribers","subscription_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/subscription","commits_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/contents/{+path}","compare_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/merges","archive_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/downloads","issues_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/issues{/number}","pulls_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/pulls{/number}","milestones_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/milestones{/number}","notifications_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/labels{/name}","releases_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/releases{/id}","deployments_url":"https://api.github.com/repos/bamachrn/container-pipeline-service/deployments","created_at":"2016-08-19T10:26:46Z","updated_at":"2018-06-12T10:19:58Z","pushed_at":"2018-11-28T06:51:21Z","git_url":"git://github.com/bamachrn/container-pipeline-service.git","ssh_url":"git@github.com:bamachrn/container-pipeline-service.git","clone_url":"https://github.com/bamachrn/container-pipeline-service.git","svn_url":"https://github.com/bamachrn/container-pipeline-service","homepage":null,"size":2557,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CentOS:openshift","ref":"openshift","sha":"4a450a46c0136554c8926082c6d8c5d77b41d7b8","user":{"login":"CentOS","id":79192,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MTky","avatar_url":"https://avatars0.githubusercontent.com/u/79192?v=4","gravatar_id":"","url":"https://api.github.com/users/CentOS","html_url":"https://github.com/CentOS","followers_url":"https://api.github.com/users/CentOS/followers","following_url":"https://api.github.com/users/CentOS/following{/other_user}","gists_url":"https://api.github.com/users/CentOS/gists{/gist_id}","starred_url":"https://api.github.com/users/CentOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CentOS/subscriptions","organizations_url":"https://api.github.com/users/CentOS/orgs","repos_url":"https://api.github.com/users/CentOS/repos","events_url":"https://api.github.com/users/CentOS/events{/privacy}","received_events_url":"https://api.github.com/users/CentOS/received_events","type":"Organization","site_admin":false},"repo":{"id":63242015,"node_id":"MDEwOlJlcG9zaXRvcnk2MzI0MjAxNQ==","name":"container-pipeline-service","full_name":"CentOS/container-pipeline-service","private":false,"owner":{"login":"CentOS","id":79192,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc5MTky","avatar_url":"https://avatars0.githubusercontent.com/u/79192?v=4","gravatar_id":"","url":"https://api.github.com/users/CentOS","html_url":"https://github.com/CentOS","followers_url":"https://api.github.com/users/CentOS/followers","following_url":"https://api.github.com/users/CentOS/following{/other_user}","gists_url":"https://api.github.com/users/CentOS/gists{/gist_id}","starred_url":"https://api.github.com/users/CentOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CentOS/subscriptions","organizations_url":"https://api.github.com/users/CentOS/orgs","repos_url":"https://api.github.com/users/CentOS/repos","events_url":"https://api.github.com/users/CentOS/events{/privacy}","received_events_url":"https://api.github.com/users/CentOS/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CentOS/container-pipeline-service","description":"Code, infrastructure and deployment backend for the CentOS Container Pipeline","fork":false,"url":"https://api.github.com/repos/CentOS/container-pipeline-service","forks_url":"https://api.github.com/repos/CentOS/container-pipeline-service/forks","keys_url":"https://api.github.com/repos/CentOS/container-pipeline-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CentOS/container-pipeline-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CentOS/container-pipeline-service/teams","hooks_url":"https://api.github.com/repos/CentOS/container-pipeline-service/hooks","issue_events_url":"https://api.github.com/repos/CentOS/container-pipeline-service/issues/events{/number}","events_url":"https://api.github.com/repos/CentOS/container-pipeline-service/events","assignees_url":"https://api.github.com/repos/CentOS/container-pipeline-service/assignees{/user}","branches_url":"https://api.github.com/repos/CentOS/container-pipeline-service/branches{/branch}","tags_url":"https://api.github.com/repos/CentOS/container-pipeline-service/tags","blobs_url":"https://api.github.com/repos/CentOS/container-pipeline-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CentOS/container-pipeline-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CentOS/container-pipeline-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/CentOS/container-pipeline-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CentOS/container-pipeline-service/statuses/{sha}","languages_url":"https://api.github.com/repos/CentOS/container-pipeline-service/languages","stargazers_url":"https://api.github.com/repos/CentOS/container-pipeline-service/stargazers","contributors_url":"https://api.github.com/repos/CentOS/container-pipeline-service/contributors","subscribers_url":"https://api.github.com/repos/CentOS/container-pipeline-service/subscribers","subscription_url":"https://api.github.com/repos/CentOS/container-pipeline-service/subscription","commits_url":"https://api.github.com/repos/CentOS/container-pipeline-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/CentOS/container-pipeline-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/CentOS/container-pipeline-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/CentOS/container-pipeline-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/CentOS/container-pipeline-service/contents/{+path}","compare_url":"https://api.github.com/repos/CentOS/container-pipeline-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CentOS/container-pipeline-service/merges","archive_url":"https://api.github.com/repos/CentOS/container-pipeline-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CentOS/container-pipeline-service/downloads","issues_url":"https://api.github.com/repos/CentOS/container-pipeline-service/issues{/number}","pulls_url":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls{/number}","milestones_url":"https://api.github.com/repos/CentOS/container-pipeline-service/milestones{/number}","notifications_url":"https://api.github.com/repos/CentOS/container-pipeline-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CentOS/container-pipeline-service/labels{/name}","releases_url":"https://api.github.com/repos/CentOS/container-pipeline-service/releases{/id}","deployments_url":"https://api.github.com/repos/CentOS/container-pipeline-service/deployments","created_at":"2016-07-13T11:55:19Z","updated_at":"2018-11-11T14:01:28Z","pushed_at":"2018-11-28T06:51:23Z","git_url":"git://github.com/CentOS/container-pipeline-service.git","ssh_url":"git@github.com:CentOS/container-pipeline-service.git","clone_url":"https://github.com/CentOS/container-pipeline-service.git","svn_url":"https://github.com/CentOS/container-pipeline-service","homepage":null,"size":2539,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":88,"license":null,"forks":21,"open_issues":88,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659"},"html":{"href":"https://github.com/CentOS/container-pipeline-service/pull/659"},"issue":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/issues/659"},"comments":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/issues/659/comments"},"review_comments":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659/comments"},"review_comment":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/pulls/659/commits"},"statuses":{"href":"https://api.github.com/repos/CentOS/container-pipeline-service/statuses/3f367b308b2f6bf976192bfee0c0d52d174fa5fa"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bamachrn"}}