-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #463 from buildkite-plugins/toote_full_url_plugin_bug
Full URL plugin bug
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,15 @@ describe('example-linter', () => { | |
}) | ||
}) | ||
describe('valid example with SSH syntax', () => { | ||
it('should be valid', async () => { | ||
it('should be valid with full url', async () => { | ||
assert(await linter({ | ||
id: 'ssh://[email protected]/my-org/example-buildkite-plugin', | ||
path: path.join(fixtures, 'valid-plugin-with-ssh-syntax'), | ||
silent: true, | ||
readme: 'README.md' | ||
}, tap)) | ||
}) | ||
it('should be valid with plugin id', async () => { | ||
assert(await linter({ | ||
id: 'my-org/example', | ||
path: path.join(fixtures, 'valid-plugin-with-ssh-syntax'), | ||
|
@@ -80,7 +88,7 @@ describe('example-linter', () => { | |
describe('invalid examples', () => { | ||
it('should be invalid', async () => { | ||
assert.isFalse(await linter({ | ||
id: 'invalid-examples', | ||
id: 'invalid-plugin', | ||
path: path.join(fixtures, 'invalid-examples'), | ||
silent: true, | ||
readme: 'README.md' | ||
|
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 |
---|---|---|
|
@@ -5,4 +5,13 @@ steps: | |
- plugins: | ||
- ssh://[email protected]/my-org/example-buildkite-plugin#v1.2.3: | ||
option: value | ||
``` | ||
## Example with .git | ||
```yaml | ||
steps: | ||
- plugins: | ||
- ssh://[email protected]/my-org/example-buildkite-plugin.git#v1.2.3: | ||
option: value | ||
``` |