Compare commits

..
Author SHA1 Message Date
marko 7ea84361a5 jenkinsfile: update with conditional steps
Signed-off-by: markoburcul <marko@status.im>
2024-10-11 12:10:36 +02:00
marko 252b462b71 testing: shouldn't trigger a build
Signed-off-by: markoburcul <marko@status.im>
2024-10-11 07:39:55 +02:00
marko b278b2034f test
Signed-off-by: markoburcul <marko@status.im>
2024-10-10 18:25:15 +02:00
4 changed files with 43 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
This monorepo contains packages for building web applications in the Status ecosystem. These packages can be used separately or combined to create consistent and beautiful user interfaces.
## Packages
test
| Name | `npm` | Description |
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`@status-im/components`](./packages/components) | [![npm version](https://img.shields.io/npm/v/@status-im/components)](https://www.npmjs.com/package/@status-im/components) | Component library built with Radix UI, React Aria, Tailwind CSS. |
+41 -2
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.11'
def changesDetected = false
pipeline {
agent { label 'linux' }
@@ -27,7 +29,20 @@ pipeline {
}
stages {
stage('Check changes') {
when {
changeset pattern: "apps/connector/**", comparator: "GLOB"
}
steps {
script {
changesDetected = true
}
}
}
stage('Install') {
when {
expression { changesDetected }
}
steps {
dir("${env.WORKSPACE}/apps/connector") {
script {
@@ -42,6 +57,9 @@ pipeline {
}
stage('Build') {
when {
expression { changesDetected }
}
steps {
dir("${env.WORKSPACE}/apps/connector") {
script {
@@ -56,6 +74,9 @@ pipeline {
}
stage('Zip') {
when {
expression { changesDetected }
}
steps {
dir("${env.WORKSPACE}/apps/connector") {
zip(
@@ -68,6 +89,9 @@ pipeline {
}
stage('Archive') {
when {
expression { changesDetected }
}
steps {
dir("${env.WORKSPACE}/apps/connector") {
archiveArtifacts(
@@ -79,6 +103,9 @@ pipeline {
}
stage('Upload') {
when {
expression { changesDetected }
}
steps {
dir("${env.WORKSPACE}/apps/connector") {
script {
@@ -90,8 +117,20 @@ pipeline {
}
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
success {
script {
if(changesDetected) {
github.notifyPR(true)
}
}
}
success {
script {
if(changesDetected) {
github.notifyPR(false)
}
}
}
cleanup { cleanWs() }
}
}
-2
View File
@@ -1,7 +1,5 @@
# A wallet connector by Status
![status](https://img.shields.io/badge/status-beta-orange)
Status Desktop Wallet extended to decentralized applications in your browser.
## Compatibility
+1
View File
@@ -0,0 +1 @@
test