Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkinsfile: revert git changes check #621

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This monorepo contains packages for building web applications in the Status ecos
| [`@status-im/eslint-config`](./packages/eslint-config) | | Shared ESLint configuration for consistent code style across projects. |

## Apps

test
| Name | Description |
| -------------------------------------- | ----------------------------------------------------------------------------- |
| [`./apps/connector`](./apps/connector) | Status Desktop Wallet extended to decentralised applications in your browser. |
Expand Down
25 changes: 7 additions & 18 deletions apps/connector/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,14 @@ pipeline {

stages {
stage('Check Changed Files') {
steps {
script {
// Get the list of changed files
def changedFiles = sh(
script: "git diff --name-only origin/main...HEAD",
returnStdout: true
).trim()

// Check if the changes are relevant
def isRelevant = changedFiles.split('\n').any { file ->
file.startsWith('apps/connector/')
}

// If no relevant changes, skip the build
if (isRelevant) {
changesDetected = true
}
}
when {
changeset pattern: "apps/connector/**", comparator: "GLOB"
}
steps {
script {
changesDetected = true
}
}
}

stage('Install') {
Expand Down
2 changes: 1 addition & 1 deletion apps/connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Tested with these browsers:
### Google Chrome

#### Develop

test
```bash
yarn dev:chrome
```
Expand Down
Loading