From f9b8e4df48ad729b8cb682c9b8902479df83348c Mon Sep 17 00:00:00 2001 From: ryszard Precikowski Date: Tue, 18 Apr 2023 14:14:17 +0200 Subject: [PATCH 1/4] plugin version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 835fac8..d083e2a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ReadyAPI MQTT Plugin ready-mqtt-plugin com.smartbear - 1.6.5-SNAPSHOT + 1.6.6-SNAPSHOT From eebd6a10a55ae8e7cdb7407b01a1fe4f28b6499f Mon Sep 17 00:00:00 2001 From: ryszard Precikowski Date: Tue, 18 Apr 2023 14:53:49 +0200 Subject: [PATCH 2/4] test --- .github/workflows/01-release.yml | 48 +++++++++++++++++++ .../smartbear/mqttsupport/PluginConfig.java | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/01-release.yml diff --git a/.github/workflows/01-release.yml b/.github/workflows/01-release.yml new file mode 100644 index 0000000..5e2aa9b --- /dev/null +++ b/.github/workflows/01-release.yml @@ -0,0 +1,48 @@ +name: 01. release + +on: + workflow_dispatch: + inputs: + s3-folder: + type: string + description: S3 folder with installers to notarize! + required: true + ready-api-version: + type: string + description: POM version required to identify installer name! + required: true + +# See: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Maven.gitlab-ci.yml +env: + MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$GITHUB_WORKSPACE/.m2/repository -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true" + MAVEN_CLI_OPTS: "--settings .m2/settings.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" + READY_API_PRODUCT_ID: 3 + +jobs: + nexus-release: + runs-on: + - self-hosted + - Linux + container: + image: ghcr.io/smartbear/readyapi-ci-images/maven:3.8-openjdk-17-slim-822ba26 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + with: + # https://github.com/devops-infra/action-pull-request/issues/51 + fetch-depth: 0 + - name: Cache .m2 + uses: actions/cache@v3 + with: + path: ${GITHUB_WORKSPACE}/.m2/repository + key: v1-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: v1-${{ runner.os }}-maven- + - name: Setup ${GITHUB_WORKSPACE}/.m2/settings.xml + uses: whelk-io/maven-settings-xml-action@v20 + with: + output_file: ${GITHUB_WORKSPACE}/.m2/settings.xml + repositories: '[{ "id": "nexus", "url": "https://readyapinexus.tools.ops.smartbear.io/nexus/content/groups/Releases" }, { "id": "com.teamdev", "url": "https://europe-maven.pkg.dev/jxbrowser/releases" }]' + plugin_repositories: '[{ "id": "plugin-repository", "url": "https://readyapinexus.tools.ops.smartbear.io/nexus/content/groups/Releases" }]' + servers: '[{"id":"nexus-dev","username":"${{ secrets.NEXUS_USERNAME }}","password":"${{ secrets.NEXUS_PASSWORD }}"}]' + - name: Maven Deploy Release + run: mvn ${MAVEN_CLI_OPTS} -DskipTests -DaltDeploymentRepository=nexus-dev::default::https://readyapinexus.tools.ops.smartbear.io/nexus/content/repositories/smartbear-release -P obfuscate -P assembly --also-make clean package deploy diff --git a/src/main/java/com/smartbear/mqttsupport/PluginConfig.java b/src/main/java/com/smartbear/mqttsupport/PluginConfig.java index a716bea..4debc28 100644 --- a/src/main/java/com/smartbear/mqttsupport/PluginConfig.java +++ b/src/main/java/com/smartbear/mqttsupport/PluginConfig.java @@ -3,7 +3,7 @@ import com.eviware.soapui.plugins.PluginAdapter; import com.eviware.soapui.plugins.PluginConfiguration; import com.eviware.soapui.support.UISupport; -@PluginConfiguration(groupId = "com.smartbear.plugins", name = "MQTT Support Plugin", version = "1.6.5-SNAPSHOT", +@PluginConfiguration(groupId = "com.smartbear.plugins", name = "MQTT Support Plugin", version = "1.6.6-SNAPSHOT", autoDetect = true, description = "Adds MQTT TestSteps to ReadyAPI", minimumReadyApiVersion = "3.9.2", infoUrl = "https://smartbear.com/plugins/mqtt-test-steps-page/") public class PluginConfig extends PluginAdapter { From 3a6cc7fc22ffdc2a4bca65f8fae669f03b47e7f8 Mon Sep 17 00:00:00 2001 From: ryszard Precikowski Date: Tue, 18 Apr 2023 15:02:59 +0200 Subject: [PATCH 3/4] update release --- .github/workflows/01-release.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/01-release.yml b/.github/workflows/01-release.yml index 5e2aa9b..82190d2 100644 --- a/.github/workflows/01-release.yml +++ b/.github/workflows/01-release.yml @@ -1,16 +1,8 @@ name: 01. release on: + push: workflow_dispatch: - inputs: - s3-folder: - type: string - description: S3 folder with installers to notarize! - required: true - ready-api-version: - type: string - description: POM version required to identify installer name! - required: true # See: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Maven.gitlab-ci.yml env: From 381ee2208174b0d2c7ae5ec81ac3feb4a38fc643 Mon Sep 17 00:00:00 2001 From: ryszard Precikowski Date: Tue, 18 Apr 2023 15:04:47 +0200 Subject: [PATCH 4/4] update release --- .github/workflows/01-release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/01-release.yml b/.github/workflows/01-release.yml index 82190d2..5f52516 100644 --- a/.github/workflows/01-release.yml +++ b/.github/workflows/01-release.yml @@ -13,8 +13,7 @@ env: jobs: nexus-release: runs-on: - - self-hosted - - Linux + - ubuntu-22.04 container: image: ghcr.io/smartbear/readyapi-ci-images/maven:3.8-openjdk-17-slim-822ba26 steps: