Skip to content

Commit

Permalink
refactor: use correct artifact links file in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
erbenjak committed Jan 3, 2024
1 parent b5d190d commit 552d9c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ npm install @js-soft/codemagic-tools

### Teams Messaging

#### Build Messages
#### Develop 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.
This command will inform about a new development 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.
This command will inform about an app version, that was released in a store. It additionally provides a link to the build logs.

## Testing

Expand Down
7 changes: 1 addition & 6 deletions test/test_teams_messaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ echo "Enter the BUILD_NUMBER :"
read BUILD_NUMBER_VALUE
export BUILD_NUMBER=$BUILD_NUMBER_VALUE


#create a variable and store a json in it
export CM_ARTIFACT_LINKS=$(cat <<EOF
[{"name": "Codemagic_Release.ipa","type": "ipa","url": "https://api.codemagic.io/artifacts/2e7564b2-9ffa-40c2-b9e0-8980436ac717/81c5a723-b162-488a-854e-3f5f7fdfb22f/Codemagic_Release.ipa","md5": "d2884be6985dad3ffc4d6f85b3a3642a","versionName": "1.0.2","bundleId": "io.codemagic.app"},{"name": "logs.txt","type": "txt","url": "https://api.codemagic.io/artifacts/2e7564b2-9ffa-40c2-b9e0-8980436ac717/81c5a723-b162-488a-854e-3f5f7fdfb22f/logs.txt","md5": "d2884be6985dad3ffc4d6f85b3a3642a"}]
EOF
)
export CM_ARTIFACT_LINKS=$(cat artifactLinks.json)

echo "webhook url: $teams_webhook_url"

Expand Down

0 comments on commit 552d9c7

Please sign in to comment.