Merge pull request #736 from status-im/fix-jenkins

This commit is contained in:
Franck R 2022-05-13 16:32:58 +10:00 committed by GitHub
commit 34d93a72d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 26 additions and 2 deletions

View File

@ -40,6 +40,13 @@ pipeline {
} }
} }
stage('HTML Examples') {
parallel {
stage('relay-js') { steps { script { copyExample() } } }
stage('store-js') { steps { script { copyExample() } } }
}
}
stage('Publish') { stage('Publish') {
when { expression { GIT_BRANCH.endsWith('master') } } when { expression { GIT_BRANCH.endsWith('master') } }
steps { script { steps { script {
@ -63,3 +70,10 @@ def buildExample(example=STAGE_NAME) {
sh "cp -r build/. ${dest}" sh "cp -r build/. ${dest}"
} }
} }
def copyExample(example=STAGE_NAME) {
def dest = "${WORKSPACE}/build/docs/examples/${example}"
dir("examples/${example}") {
sh "cp index.html ${dest}"
}
}

View File

@ -15,7 +15,7 @@ using the encryption API provided by some Web3 Wallet provider such as [MetaMask
The sender only needs to know the Ethereum address of the recipient. The sender only needs to know the Ethereum address of the recipient.
The recipient must broadcast his encryption public key as a first step. The recipient must broadcast his encryption public key as a first step.
The `master` branch's HEAD is deployed on GitHub Pages at https://js-waku.wakuconnect.dev/examples/eth-pm-wallet-encryption/. The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/eth-pm-wallet-encryption/.
To run a development version locally, do: To run a development version locally, do:

View File

@ -17,7 +17,7 @@ only knowing their Ethereum Address.
This protocol has been created to demonstrated how encryption and signature could be added to message This protocol has been created to demonstrated how encryption and signature could be added to message
sent over the Waku v2 network. sent over the Waku v2 network.
The `master` branch's HEAD is deployed on GitHub Pages at https://js-waku.wakuconnect.dev/examples/eth-pm/. The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/eth-pm/.
To run a development version locally, do: To run a development version locally, do:

View File

@ -9,3 +9,5 @@
This example uses Waku Relay to send and receive simple text messages. This example uses Waku Relay to send and receive simple text messages.
To test the example, simply download the `index.html` file from this folder and open it in a browser. To test the example, simply download the `index.html` file from this folder and open it in a browser.
The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/relay-js/.

View File

@ -11,6 +11,8 @@
A barebone chat app to illustrate the [ReactJS Relay guide](https://docs.wakuconnect.dev/docs/guides/07_reactjs_relay/). A barebone chat app to illustrate the [ReactJS Relay guide](https://docs.wakuconnect.dev/docs/guides/07_reactjs_relay/).
The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/relay-reactjs-chat/.
To run a development version locally, do: To run a development version locally, do:
```shell ```shell

View File

@ -2,6 +2,7 @@
"name": "relay-reactjs-chat", "name": "relay-reactjs-chat",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"homepage": "/examples/relay-reactjs-chat",
"dependencies": { "dependencies": {
"@testing-library/jest-dom": "^5.16.2", "@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^13.2.0", "@testing-library/react": "^13.2.0",

View File

@ -9,3 +9,5 @@
This example uses Waku Store to retrieve the latest ping relay message (used for keep alive purposes) and displays its timestamp. This example uses Waku Store to retrieve the latest ping relay message (used for keep alive purposes) and displays its timestamp.
To test the example, simply download the `index.html` file from this folder and open it in a browser. To test the example, simply download the `index.html` file from this folder and open it in a browser.
The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/store-js/.

View File

@ -9,6 +9,8 @@
A simple app that retrieves chat messages using [Waku Store](https://rfc.vac.dev/spec/13/) A simple app that retrieves chat messages using [Waku Store](https://rfc.vac.dev/spec/13/)
to illustrate the [Retrieve Messages Using Waku Store With ReactJS guide](https://docs.wakuconnect.dev/docs/guides/08_reactjs_store/). to illustrate the [Retrieve Messages Using Waku Store With ReactJS guide](https://docs.wakuconnect.dev/docs/guides/08_reactjs_store/).
The `master` branch's HEAD is deployed at https://js-waku.wakuconnect.dev/examples/store-reactjs-chat/.
To run a development version locally, do: To run a development version locally, do:
```shell ```shell

View File

@ -2,6 +2,7 @@
"name": "store-reactjs-chat", "name": "store-reactjs-chat",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"homepage": "/examples/store-reactjs-chat",
"dependencies": { "dependencies": {
"@testing-library/jest-dom": "^5.16.4", "@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0", "@testing-library/react": "^13.2.0",