Skip to content

Commit 73dba9b

Browse files
committed
Initial commit
1 parent 3c22c86 commit 73dba9b

File tree

13 files changed

+157
-43
lines changed

13 files changed

+157
-43
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ workflows:
2323
# Triggers the next workflow in the Orb Development Kit.
2424
- orb-tools/continue:
2525
pipeline_number: << pipeline.number >>
26-
vcs_type: << pipeline.project.type >>
26+
vcs_type: github
2727
orb_name: browserstack-circleci-orb
2828
requires: [orb-tools/lint, orb-tools/pack, orb-tools/review, shellcheck/check]
2929
filters: *filters

.circleci/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- checkout
3030
# Run your orb's commands to validate them.
31-
- browserstack-circleci-orb/greet
31+
- browserstack-circleci-orb/set_rerun_tests
3232
workflows:
3333
test-deploy:
3434
jobs:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# orb.yml is "packed" from source, and not published directly from the repository.
22
orb.yml
3-
.DS_Store
3+
.DS_Store
4+
.idea

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ _**Edit this area to include a custom title and description.**_
2121

2222
### How to Contribute
2323

24-
We welcome [issues](https://github.com/JryBWxh6hsGZUqwDfzkkT7/browserstack-circleci-orb/issues) to and [pull requests](https://github.com/JryBWxh6hsGZUqwDfzkkT7/browserstack-circleci-orb/pulls) against this repository!
24+
We welcome [issues](https://github.com/browserstack/browserstack-circleci-orb/issues) to and [pull requests](https://github.com/browserstack/browserstack-circleci-orb/pulls) against this repository!
2525

2626
### How to Publish An Update
2727
1. Merge pull requests with desired changes to the main branch.
2828
- For the best experience, squash-and-merge and use [Conventional Commit Messages](https://conventionalcommits.org/).
2929
2. Find the current version of the orb.
3030
- You can run `circleci orb info browserstack/browserstack-circleci-orb | grep "Latest"` to see the current version.
31-
3. Create a [new Release](https://github.com/JryBWxh6hsGZUqwDfzkkT7/browserstack-circleci-orb/releases/new) on GitHub.
31+
3. Create a [new Release](https://github.com/browserstack/browserstack-circleci-orb/releases/new) on GitHub.
3232
- Click "Choose a tag" and _create_ a new [semantically versioned](http://semver.org/) tag. (ex: v1.0.0)
3333
- We will have an opportunity to change this before we publish if needed after the next step.
3434
4. Click _"+ Auto-generate release notes"_.

src/@orb.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 2.1
22

33
description: >
4-
Sample orb description
4+
Browserstack orb to set custom job-scope variables for a user config.
55
# What will your orb allow users to accomplish?
66
# Descriptions should be short, simple, and informative.
77

88
# This information will be displayed in the orb registry and is not mandatory.
99
display:
10-
home_url: "https://www.example.com/docs"
11-
source_url: "https://github.com/JryBWxh6hsGZUqwDfzkkT7/browserstack-circleci-orb"
10+
home_url: "https://browserstack.com"
11+
source_url: "https://github.com/browserstack/browserstack-circleci-orb"
1212

1313
# If your orb requires other orbs, you can import them like this. Otherwise remove the "orbs" stanza.
1414
# orbs:

src/commands/greet.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/commands/set_rerun_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
description: "Cleanup the project level environment variable set by browserstack rerun API"
2+
3+
steps:
4+
- run:
5+
name: Cleanup Environment
6+
command: <<include(scripts/rerun_tests.sh)>>
7+
environment:
8+
CLEANUP_ENV_VAR: true
File renamed without changes.

src/examples/set_rerun_tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: '2.1'
2+
orbs:
3+
browserstack-circleci-orb: browserstack/[email protected]
4+
5+
jobs:
6+
my_test_job:
7+
executor: default
8+
steps:
9+
- checkout
10+
- browserstack-circleci-orb/set_rerun_tests:
11+
delete_env_var: true # Default value is False
12+
- run:
13+
name: Run Test
14+
command: |
15+
echo "Bs Tests: $BSTACK_RERUN_TESTS"
16+
workflows:
17+
set-rerun-tests-example:
18+
jobs:
19+
- my_test_job

src/jobs/cleanup_env.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
description: "Cleanup the project level environment variable"
2+
3+
steps:
4+
- run:
5+
name: Cleanup Environment
6+
command: <<include(scripts/rerun_tests.sh)>>
7+
environment:
8+
CLEANUP_ENV_VAR: true

0 commit comments

Comments
 (0)