-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(911): Add source paths docs * fix: Autofocus on search form * fix: Formatting * fix: Add sd-cmd to contributing doc * fix: Source paths is only available for scm-github * fix: Use new workflow
- Loading branch information
Showing
9 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,12 +26,14 @@ shared: | |
jobs: | ||
main: | ||
requires: [~pr, ~commit] | ||
template: example/mytemplate@stable | ||
``` | ||
|
||
``` | ||
jobs: | ||
main: | ||
requires: [~pr, ~commit] | ||
template: example/mytemplate@stable | ||
settings: | ||
email: [[email protected], [email protected]] | ||
|
@@ -42,7 +44,7 @@ jobs: | |
To enable emails to be sent as a result of build events, use the email setting. | ||
You can configure a list of one or more email addresses to contact. You can also configure when to send an email, e.g. when the build status is `SUCCESS` and/or `FAILURE`. | ||
|
||
### Example | ||
#### Example | ||
``` | ||
settings: | ||
email: | ||
|
@@ -54,7 +56,7 @@ You can configure a list of one or more email addresses to contact. You can also | |
To enable Slack notifications to be sent as a result of build events, invite the `screwdriver-bot` Slack bot to your channel(s) and use the Slack setting in your Screwdriver yaml. | ||
You can configure a list of one or more Slack channels to notify. You can also configure when to send a Slack notification, e.g. when the build status is `SUCCESS` and/or `FAILURE`. | ||
|
||
### Example | ||
#### Example | ||
|
||
This Slack setting will send Slack notifications to `mychannel` and `my-other-channel` on all build statuses: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
layout: main | ||
title: Source Paths | ||
category: User Guide | ||
menu: menu | ||
toc: | ||
- title: Source Paths | ||
url: "#source-paths" | ||
|
||
--- | ||
# Source Paths | ||
Source paths can be used to specify source code paths that will trigger a job upon modification. This is done by using a `sourcePaths` keyword in your job definition as a string or array of strings. This can be useful for running workflows based on subdirectories in a [monorepo](https://developer.atlassian.com/blog/2015/10/monorepos-in-git). | ||
|
||
|
||
_Note: This feature is only available for [Github SCM](https://github.com/screwdriver-cd/scm-github)._ | ||
|
||
## Types of source paths | ||
You can either specify subdirectories and/or specific files as source paths. To denote a subdirectory, leave a trailing slash (`/`) at the end. | ||
|
||
#### Example | ||
In the following example, the job `main` will start after any SCM pull-request, _or_ commit event on files under `src/app/` or the `screwdriver.yaml` file. | ||
|
||
```yaml | ||
jobs: | ||
main: | ||
image: node:6 | ||
requires: [~pr, ~commit] | ||
sourcePaths: ["src/app/", "screwdriver.yaml"] | ||
steps: | ||
- echo: echo hi | ||
``` |