{"action":"closed","issue":{"url":"https://api.github.com/repos/soundcloud/pipeline-generator/issues/5","labels_url":"https://api.github.com/repos/soundcloud/pipeline-generator/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/soundcloud/pipeline-generator/issues/5/comments","events_url":"https://api.github.com/repos/soundcloud/pipeline-generator/issues/5/events","html_url":"https://github.com/soundcloud/pipeline-generator/issues/5","id":108534875,"number":5,"title":"Parallel jobs don't run on the same git sha","user":{"login":"ssmiech","id":2083862,"avatar_url":"https://avatars.githubusercontent.com/u/2083862?v=3","gravatar_id":"","url":"https://api.github.com/users/ssmiech","html_url":"https://github.com/ssmiech","followers_url":"https://api.github.com/users/ssmiech/followers","following_url":"https://api.github.com/users/ssmiech/following{/other_user}","gists_url":"https://api.github.com/users/ssmiech/gists{/gist_id}","starred_url":"https://api.github.com/users/ssmiech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssmiech/subscriptions","organizations_url":"https://api.github.com/users/ssmiech/orgs","repos_url":"https://api.github.com/users/ssmiech/repos","events_url":"https://api.github.com/users/ssmiech/events{/privacy}","received_events_url":"https://api.github.com/users/ssmiech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/soundcloud/pipeline-generator/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-27T13:26:27Z","updated_at":"2015-10-10T10:21:00Z","closed_at":"2015-10-10T10:21:00Z","body":"Since multi jobs don't pass git sha to the downstream dependencies, the downstream jobs will always execute the latest commit from `origin`\r\n\r\ngiven a job config: \r\n```\r\n{\r\n    \"stages\": [\r\n        {\r\n            \"name\": \"build\",\r\n            \"jobs\": [\r\n                [\r\n                        { \"static_analysis\": {\"cmd\": \"echo ''\" } },\r\n                        { \"compile\": {\"cmd\": \"echo ''\" } },\r\n                        { \"dex_watchdog\": {\"cmd\": \"echo ''\" } }\r\n                ]\r\n            ],\r\n            \"next-stages\": [ \"test\" ]\r\n        },\r\n        {\r\n            \"name\": \"test\",\r\n            \"jobs\": [\r\n                [\r\n                    { \"unit_tests\": {\"cmd\": \"echo ''\" } },\r\n                    { \"acceptance_tests\": {\"cmd\": \"echo ''\" } }\r\n                ]\r\n            ],\r\n            \"next-stages\": [ \"deploy\" ]\r\n        },\r\n        {\r\n            \"name\": \"deploy\",\r\n            \"jobs\": [\r\n                { \"deploy_alpha\": {\"cmd\": \"echo 'deployingAlpha'\"} }\r\n            ]\r\n        }\r\n    ],\r\n    \"settings\": {\r\n        \"jenkins-server\": \"http://localhost:8080\",\r\n        \"default-name\" : \"pipelinetest\",\r\n        \"git-url\": \"git@github.com:ssmiech/pipeline-test.git\",\r\n        \"slave-label\": \"master\"\r\n    }\r\n}\r\n```\r\n\r\nif there are any commits in between pipeline stages, the stages after commit will be executed with wrong git commit leading to incorrect build artifacts/results. "}}