Yaml Configuration

This is an interactive guide for exploring various important properties of the screwdriver.yaml configuration for projects.

You can access information about properties by hovering over the property name.


shared:
    environment:
    NODE_ENV: test
    settings:
        email:
    addresses: [test@email.com, test2@email.com]
    statuses: [SUCCESS, FAILURE]
    annotations:
    beta.screwdriver.cd/my-cluster-annotation: my-data
        beta.screwdriver.cd/executor: k8s-vm
        screwdriver.cd/cpu: HIGH
        screwdriver.cd/ram: LOW
parameters:
    region: "us-west-1"
    az: 
        value: "zone 1"
        description: "default availability zone"
jobs:
    main:
        requires: [~pr, ~commit, ~sd@123:main]
        sourcePaths: ["src/app/", "screwdriver.yaml"]
        image: node:lts
        steps:
            - init: npm install
            - test: npm test
    publish:
        requires: [main]
        template: node/publish@4.3.1
        order: [init, publish, teardown-save-results]
        steps:
            - publish: npm install
            - teardown-save-results: cp ./results $SD_ARTIFACTS_DIR
    deploy-west:
        requires: []
        image: node:lts
        environment:
            DEPLOY_ENV: west
        steps:
            - init: npm install
            - deploy: npm deploy
    deploy-east:
        requires: [deploy-west]
        image: node:lts
        environment:
            DEPLOY_ENV: east
        steps:
            - init: npm install
            - deploy: npm deploy
    finished:
        requires: [stage@deployment]
        image: node:lts
        steps:
            - echo: echo done
stages:
    deployment:
        requires: [publish]
        jobs: [deploy-west, deploy-east]
        description: This stage is utilized for grouping jobs involved in deploying components to multiple regions.