Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Jan 3, 2024
1 parent 24e3b39 commit b5d190d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,43 @@ npm install @js-soft/codemagic-tools
### Teams Messaging

#### Build Messages

```bash
jscm teams-develop --platform <platform> --projectName <projectName>
```

This command will inform about a new build and additionally provide a link to the build. In case of a failed build it will also provide a link to the build log.

### Production Messages

```bash
jscm teams-publish --platform <platform> --projectName <projectName>
```

This command will inform about a newly released version. It aditionally provides a link to the build logs.

## Testing

For testing a JSON like created in Codemagic is provided. Additionally a bash-script, which
can be used to test the command is provided. Upon execution the
test script will ask you to specify the following variables:

* webhook - webhook url you want to send to / or just some valid https-address
* BuildId - a string
* ProjectId - a string
* buildNumber - a number
- webhook - webhook url you want to send to / or just some valid https-address
- BuildId - a string
- ProjectId - a string
- buildNumber - a number

After preparation of your local environment the script will execute the jscm command.

It will execute both possible command:

* teams-develop (in failed/successful state)
* teams-production (in failed/successful state)
- teams-develop (in failed/successful state)
- teams-production (in failed/successful state)

&rarr; This will result in 4 messages being sent to the specified teams channel

### Calling the test script

```bash
./test/test_teams_messaging.sh
```
Expand Down

0 comments on commit b5d190d

Please sign in to comment.