{ "jobs": { "main": [ { "image": "node:4", "commands": [ { "name": "init", "command": "npm install" }, { "name": "test", "command": "npm test" } ], "environment": { "NODE_ENV": "test", "NODE_VERSION": "4" }, "requires": ["~pr", "~commit", "~sd@12345:test"] }, { "image": "node:5", "commands": [ { "name": "init", "command": "npm install" }, { "name": "test", "command": "npm test" } ], "environment": { "NODE_ENV": "test", "NODE_VERSION": "5" }, "requires": ["~pr", "~commit", "~sd@12345:test"] }, { "image": "node:6", "commands": [ { "name": "init", "command": "npm install" }, { "name": "test", "command": "npm test" } ], "environment": { "NODE_ENV": "test", "NODE_VERSION": "6" }, "requires": ["~pr", "~commit", "~sd@12345:test"] } ], "test": [ { "image": "node:10", "commands": [ { "name": "test", "command": "npm test" } ], "requires": ["~pr"], "templateId": 5, "description": "test job" } ], "publish": [ { "image": "node:4", "commands": [ { "name": "publish", "command": "npm publish --tag $NODE_TAG" } ], "environment": { "NODE_ENV": "test", "NODE_TAG": "latest" }, "requires": ["main"] } ], "new_pr_job": [ { "image": "node:8", "commands": [ { "name": "install", "command": "npm install test" } ], "requires": ["~pr"] } ], "not_pr_job": [ { "image": "node:8", "commands": [ { "name": "install", "command": "npm install test" } ], "requires": ["~commit"] } ], "pr_specific_branch": [ { "image": "node:8", "commands": [ { "name": "install", "command": "npm install test" } ], "requires": ["~pr:testBranch"] } ] }, "workflowGraph": { "nodes": [ { "name": "~pr" }, { "name": "~commit" }, { "name": "main" }, { "name": "test" }, { "name": "publish" }, { "name": "new_pr_job" }, { "name": "not_pr_job" } ], "edges": [ { "src": "~pr", "dest": "main" }, { "src": "~pr", "dest": "test" }, { "src": "~pr", "dest": "new_pr_job" }, { "src": "~commit", "dest": "main" }, { "src": "main", "dest": "publish" }, { "src": "~commit", "dest": "not_pr_job" }, { "src": "~pr:testBranch", "dest": "pr_specific_branch" } ] }, "annotations": { "beta.screwdriver.cd/executor" : "screwdriver-executor-vm" } }