{"action":"created","issue":{"url":"https://api.github.com/repos/openshiftio/openshift.io/issues/3742","repository_url":"https://api.github.com/repos/openshiftio/openshift.io","labels_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/3742/labels{/name}","comments_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/3742/comments","events_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/3742/events","html_url":"https://github.com/openshiftio/openshift.io/issues/3742","id":329419001,"node_id":"MDU6SXNzdWUzMjk0MTkwMDE=","number":3742,"title":"Pipelines: two builds are triggered instead of one","user":{"login":"ljelinkova","id":2078072,"node_id":"MDQ6VXNlcjIwNzgwNzI=","avatar_url":"https://avatars2.githubusercontent.com/u/2078072?v=4","gravatar_id":"","url":"https://api.github.com/users/ljelinkova","html_url":"https://github.com/ljelinkova","followers_url":"https://api.github.com/users/ljelinkova/followers","following_url":"https://api.github.com/users/ljelinkova/following{/other_user}","gists_url":"https://api.github.com/users/ljelinkova/gists{/gist_id}","starred_url":"https://api.github.com/users/ljelinkova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljelinkova/subscriptions","organizations_url":"https://api.github.com/users/ljelinkova/orgs","repos_url":"https://api.github.com/users/ljelinkova/repos","events_url":"https://api.github.com/users/ljelinkova/events{/privacy}","received_events_url":"https://api.github.com/users/ljelinkova/received_events","type":"User","site_admin":false},"labels":[{"id":627758081,"node_id":"MDU6TGFiZWw2Mjc3NTgwODE=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/SEV2-high","name":"SEV2-high","color":"666666","default":false},{"id":772560723,"node_id":"MDU6TGFiZWw3NzI1NjA3MjM=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/area/jenkins","name":"area/jenkins","color":"fef2c0","default":false},{"id":627758100,"node_id":"MDU6TGFiZWw2Mjc3NTgxMDA=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/area/pipelines","name":"area/pipelines","color":"FEF2C0","default":false},{"id":627758078,"node_id":"MDU6TGFiZWw2Mjc3NTgwNzg=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/sprint/next","name":"sprint/next","color":"0052CC","default":false},{"id":637470775,"node_id":"MDU6TGFiZWw2Mzc0NzA3NzU=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/team/build-cd","name":"team/build-cd","color":"d4c5f9","default":false},{"id":627758095,"node_id":"MDU6TGFiZWw2Mjc3NTgwOTU=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/type/bug","name":"type/bug","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"piyush1594","id":19270240,"node_id":"MDQ6VXNlcjE5MjcwMjQw","avatar_url":"https://avatars1.githubusercontent.com/u/19270240?v=4","gravatar_id":"","url":"https://api.github.com/users/piyush1594","html_url":"https://github.com/piyush1594","followers_url":"https://api.github.com/users/piyush1594/followers","following_url":"https://api.github.com/users/piyush1594/following{/other_user}","gists_url":"https://api.github.com/users/piyush1594/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush1594/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush1594/subscriptions","organizations_url":"https://api.github.com/users/piyush1594/orgs","repos_url":"https://api.github.com/users/piyush1594/repos","events_url":"https://api.github.com/users/piyush1594/events{/privacy}","received_events_url":"https://api.github.com/users/piyush1594/received_events","type":"User","site_admin":false},"assignees":[{"login":"piyush1594","id":19270240,"node_id":"MDQ6VXNlcjE5MjcwMjQw","avatar_url":"https://avatars1.githubusercontent.com/u/19270240?v=4","gravatar_id":"","url":"https://api.github.com/users/piyush1594","html_url":"https://github.com/piyush1594","followers_url":"https://api.github.com/users/piyush1594/followers","following_url":"https://api.github.com/users/piyush1594/following{/other_user}","gists_url":"https://api.github.com/users/piyush1594/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush1594/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush1594/subscriptions","organizations_url":"https://api.github.com/users/piyush1594/orgs","repos_url":"https://api.github.com/users/piyush1594/repos","events_url":"https://api.github.com/users/piyush1594/events{/privacy}","received_events_url":"https://api.github.com/users/piyush1594/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2018-06-05T11:44:10Z","updated_at":"2018-07-06T22:14:04Z","closed_at":null,"author_association":"COLLABORATOR","body":"I've ran the E2E tests and encountered strange pipelines behavior. \r\n\r\nI created quickstart and ran the pipeline, but two builds were triggered instead of one. The builds are inconsistent between OSIO and Jenkins. \r\n\r\nOSIO: Build 1 has not started at all, build 2 has failed\r\nJenkins: Build 1 failed, build 2 successful\r\n\r\n![pipeline-2](https://user-images.githubusercontent.com/2078072/40973885-1d40e5bc-68c6-11e8-8a25-ca366b6a9b13.png)\r\n\r\nAnd at Jenkins\r\n![jenkins](https://user-images.githubusercontent.com/2078072/40973887-1f20bce0-68c6-11e8-97de-b627253a8645.png)\r\n\r\nAs you can see the first build in Jenkins failed with the following error. \r\n```\r\nFailed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (fmp) on project e2e-0605-111854: Failed to execute the build: Unable to build the image using the OpenShift build service: An error has occurred. timeout: Socket closed -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (fmp) on project e2e-0605-111854: Failed to execute the build\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:199)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute the build\r\n\tat io.fabric8.maven.plugin.mojo.build.BuildMojo.buildAndTag(BuildMojo.java:270)\r\n\tat io.fabric8.maven.docker.BuildMojo.executeInternal(BuildMojo.java:44)\r\n\tat io.fabric8.maven.plugin.mojo.build.BuildMojo.executeInternal(BuildMojo.java:228)\r\n\tat io.fabric8.maven.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:223)\r\n\tat io.fabric8.maven.plugin.mojo.build.BuildMojo.execute(BuildMojo.java:199)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\r\n\t... 20 more\r\nCaused by: io.fabric8.maven.core.service.Fabric8ServiceException: Unable to build the image using the OpenShift build service\r\n\tat io.fabric8.maven.core.service.openshift.OpenshiftBuildService.build(OpenshiftBuildService.java:121)\r\n\tat io.fabric8.maven.plugin.mojo.build.BuildMojo.buildAndTag(BuildMojo.java:267)\r\n\t... 26 more\r\nCaused by: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.\r\n\tat io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:62)\r\n\tat io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:53)\r\n\tat io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:276)\r\n\tat io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromFile(BuildConfigOperationsImpl.java:231)\r\n\tat io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromFile(BuildConfigOperationsImpl.java:68)\r\n\tat io.fabric8.maven.core.service.openshift.OpenshiftBuildService.startBuild(OpenshiftBuildService.java:361)\r\n\tat io.fabric8.maven.core.service.openshift.OpenshiftBuildService.build(OpenshiftBuildService.java:111)\r\n\t... 27 more\r\nCaused by: java.net.SocketTimeoutException: timeout\r\n\tat okio.Okio$4.newTimeoutException(Okio.java:230)\r\n\tat okio.AsyncTimeout.exit(AsyncTimeout.java:285)\r\n\tat okio.AsyncTimeout$2.read(AsyncTimeout.java:241)\r\n\tat okio.RealBufferedSource.indexOf(RealBufferedSource.java:345)\r\n\tat okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217)\r\n\tat okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:211)\r\n\tat okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:187)\r\n\tat okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:61)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)\r\n\tat okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)\r\n\tat okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)\r\n\tat okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)\r\n\tat okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)\r\n\tat io.fabric8.openshift.client.internal.OpenShiftOAuthInterceptor.intercept(OpenShiftOAuthInterceptor.java:66)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)\r\n\tat okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)\r\n\tat okhttp3.RealCall.execute(RealCall.java:77)\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:377)\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:359)\r\n\tat io.fabric8.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:274)\r\n\t... 31 more\r\nCaused by: java.net.SocketException: Socket closed\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:204)\r\n\tat java.net.SocketInputStream.read(SocketInputStream.java:141)\r\n\tat sun.security.ssl.InputRecord.readFully(InputRecord.java:465)\r\n\tat sun.security.ssl.InputRecord.read(InputRecord.java:503)\r\n\tat sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)\r\n\tat sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)\r\n\tat sun.security.ssl.AppInputStream.read(AppInputStream.java:105)\r\n\tat okio.Okio$2.read(Okio.java:139)\r\n\tat okio.AsyncTimeout$2.read(AsyncTimeout.java:237)\r\n\t... 56 more\r\n```"},"comment":{"url":"https://api.github.com/repos/openshiftio/openshift.io/issues/comments/403159650","html_url":"https://github.com/openshiftio/openshift.io/issues/3742#issuecomment-403159650","issue_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/3742","id":403159650,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzE1OTY1MA==","user":{"login":"piyush1594","id":19270240,"node_id":"MDQ6VXNlcjE5MjcwMjQw","avatar_url":"https://avatars1.githubusercontent.com/u/19270240?v=4","gravatar_id":"","url":"https://api.github.com/users/piyush1594","html_url":"https://github.com/piyush1594","followers_url":"https://api.github.com/users/piyush1594/followers","following_url":"https://api.github.com/users/piyush1594/following{/other_user}","gists_url":"https://api.github.com/users/piyush1594/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush1594/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush1594/subscriptions","organizations_url":"https://api.github.com/users/piyush1594/orgs","repos_url":"https://api.github.com/users/piyush1594/repos","events_url":"https://api.github.com/users/piyush1594/events{/privacy}","received_events_url":"https://api.github.com/users/piyush1594/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T22:14:04Z","updated_at":"2018-07-06T22:14:04Z","author_association":"COLLABORATOR","body":"@gastaldi @ravsa What I have observed so far is that the BuildConfig Created has property lastVersion in status equal to 2 in case of two builds of a pipeline. Have you any idea where that is getting changed. If that property is 1 it shows one build."}}
{"actor":{"display_login":"piyush1594"}}