diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c16fda252772f..40676bd0b046a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -117,20 +117,11 @@ jobs: ) echo "matrix=$matrix" >> $GITHUB_OUTPUT - # build-setup-plugin: - # if: ${{ inputs.build_plugins }} - # name: Build wazuh-indexer-setup plugin - # uses: wazuh/wazuh-indexer-plugins/.github/workflows/build.yml@ci/13-add-build-workflow - # with: - # revision: ${{ inputs.revision }} - # plugin: wazuh-indexer-setup - # id: ${{ inputs.id }} - build-plugins: strategy: fail-fast: false matrix: - plugins: [ "wazuh-indexer-setup" ] + plugins: ["wazuh-indexer-setup"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -153,10 +144,10 @@ jobs: working-directory: ./plugins/${{ matrix.plugins }} run: | ./gradlew build -Dversion=${{ steps.version.outputs.version }} -Drevision=${{ inputs.revision }} - + - name: Publish to Maven local working-directory: ./plugins/${{ matrix.plugins }} - run: | + run: | ./gradlew publishToMavenLocal -Dversion=${{ steps.version.outputs.version }} -Drevision=${{ inputs.revision }} ls -lR "${HOME}/.m2/repository/org/wazuh/" @@ -174,7 +165,7 @@ jobs: java-version: 21 - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 + uses: gradle/actions/setup-gradle@v4 - name: Provision if: ${{ matrix.distribution == 'deb' }} diff --git a/packaging_scripts/assemble.sh b/packaging_scripts/assemble.sh index 7d553ec1187df..8e6e44db90ac8 100755 --- a/packaging_scripts/assemble.sh +++ b/packaging_scripts/assemble.sh @@ -207,7 +207,7 @@ function fix_log_rotation() { echo 'grant {' echo ' permission java.lang.RuntimePermission "accessUserInformation";' echo '};' - } >> "${1}/opensearch-performance-analyzer/opensearch_security.policy" + } >>"${1}/opensearch-performance-analyzer/opensearch_security.policy" } # ==== @@ -422,7 +422,7 @@ function main() { esac # Create checksum - sha512sum "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME" > "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME".sha512 + sha512sum "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME" >"${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME".sha512 } main "${@}"