{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/7143","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/7143/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/7143/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/7143/events","html_url":"https://github.com/openshift/origin/issues/7143","id":132389245,"number":7143,"title":"ImageChange trigger is not taken into account with a custom strategy","user":{"login":"YannMoisan","id":681743,"avatar_url":"https://avatars.githubusercontent.com/u/681743?v=3","gravatar_id":"","url":"https://api.github.com/users/YannMoisan","html_url":"https://github.com/YannMoisan","followers_url":"https://api.github.com/users/YannMoisan/followers","following_url":"https://api.github.com/users/YannMoisan/following{/other_user}","gists_url":"https://api.github.com/users/YannMoisan/gists{/gist_id}","starred_url":"https://api.github.com/users/YannMoisan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YannMoisan/subscriptions","organizations_url":"https://api.github.com/users/YannMoisan/orgs","repos_url":"https://api.github.com/users/YannMoisan/repos","events_url":"https://api.github.com/users/YannMoisan/events{/privacy}","received_events_url":"https://api.github.com/users/YannMoisan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/build","name":"component/build","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-02-09T10:58:12Z","updated_at":"2016-02-10T14:25:28Z","closed_at":null,"body":"I have a BuildConfig using a custom strategy.\r\n\r\nHere is the interesting part \r\n```\r\n- kind: BuildConfig\r\n  spec:\r\n    strategy:\r\n      type: Custom\r\n      customStrategy:\r\n        from:\r\n          kind: DockerImage\r\n          name: company/builder:latest\r\n        pullSecret:\r\n          name: dockercfg\r\n        forcePull: true\r\n    triggers:\r\n    - type: ImageChange\r\n      from:\r\n        kind: ImageStreamTag\r\n        name: myapp:latest\r\n```\r\n\r\nWhen I look at the resource created with `oc get bc` :\r\n\r\n```\r\n        \"triggers\": [\r\n            {\r\n                \"type\": \"ImageChange\",\r\n                \"imageChange\": {\r\n                    \"lastTriggeredImageID\": \"company/builder:latest\"\r\n                }\r\n            }\r\n        ],\r\n```\r\n\r\nIt seems that my image change is silently overriden with an image change generated automatically by openshift from the docker image of my custom strategy.\r\n\r\nI would appreciate to have two ImageChange trigger for a single BuildConfig."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/182395790","html_url":"https://github.com/openshift/origin/issues/7143#issuecomment-182395790","issue_url":"https://api.github.com/repos/openshift/origin/issues/7143","id":182395790,"user":{"login":"YannMoisan","id":681743,"avatar_url":"https://avatars.githubusercontent.com/u/681743?v=3","gravatar_id":"","url":"https://api.github.com/users/YannMoisan","html_url":"https://github.com/YannMoisan","followers_url":"https://api.github.com/users/YannMoisan/followers","following_url":"https://api.github.com/users/YannMoisan/following{/other_user}","gists_url":"https://api.github.com/users/YannMoisan/gists{/gist_id}","starred_url":"https://api.github.com/users/YannMoisan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YannMoisan/subscriptions","organizations_url":"https://api.github.com/users/YannMoisan/orgs","repos_url":"https://api.github.com/users/YannMoisan/repos","events_url":"https://api.github.com/users/YannMoisan/events{/privacy}","received_events_url":"https://api.github.com/users/YannMoisan/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T14:25:28Z","updated_at":"2016-02-10T14:25:28Z","body":"yes. \r\n\r\nBTW, validation of yaml files could be very helpful."}}