This is an automated email from the ASF dual-hosted git repository. rantunes pushed a commit to branch extended-services-release-job in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
commit 2ab80264871392bd026d7c5dd96ded21908f3e23 Author: Rodrigo Antunes <[email protected]> AuthorDate: Wed Sep 11 11:33:47 2024 -0300 Fix extended services release jobs --- .../workflows/release_build_extended_services.yml | 131 ++++++++++++++++++++- 1 file changed, 129 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_build_extended_services.yml b/.github/workflows/release_build_extended_services.yml index ee15d51d610..ea891309206 100644 --- a/.github/workflows/release_build_extended_services.yml +++ b/.github/workflows/release_build_extended_services.yml @@ -29,11 +29,17 @@ on: base_ref: type: string required: true - description: "Tag associated with the release" + description: "Base reference for the checkout" release_candidate_version: type: string required: true - description: "Tag associated with the release" + description: "Release candidate version" + jitexecutor_native_macos_repository: + required: true + description: "JITExecutor native macOS artifacts repository" + jitexecutor_native_windows_repository: + required: true + description: "JITExecutor native windows artifacts repository" env: KIE_TOOLS_BUILD__runLinters: "false" @@ -64,6 +70,127 @@ jobs: id: setup_env uses: ./.github/actions/setup-env + - name: Setup maven settings (MacOS) + if: runner.os == 'macOS' + env: + WORKDIR_PATH: ${{ github.workspace }} + JITEXECUTOR_NATIVE_REPO: ${{ github.event.inputs.jitexecutor_native_macos_repository }} + run: | + mkdir -p ${WORKDIR_PATH}/.m2 + echo "<settings> + <servers> + <server> + <id>apache.snapshots.https</id> + <username>${{ secrets.NEXUS_USER }}</username> + <password>${{ secrets.NEXUS_PW }}</password> + </server> + </servers> + <profiles> + <profile> + <id>additional_repos</id> + <repositories> + <repository> + <id>apache-kie-jitexecutor-native-staging-repository</id> + <name>Apache KIE JITExecutor Native Staging Repository</name> + <url>${JITEXECUTOR_NATIVE_REPO}</url> + <layout>default</layout> + <releases> + <enabled>true</enabled> + <updatePolicy>never</updatePolicy> + </releases> + <snapshots> + <enabled>false</enabled> + <updatePolicy>never</updatePolicy> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>apache-kie-jitexecutor-native-staging-repository</id> + <name>Apache KIE JITExecutor Native Staging Repository</name> + <url>${JITEXECUTOR_NATIVE_REPO}</url> + <releases> + <enabled>true</enabled> + <updatePolicy>never</updatePolicy> + </releases> + <snapshots> + <enabled>false</enabled> + <updatePolicy>never</updatePolicy> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> + <activeProfiles> + <activeProfile>additional_repos</activeProfile> + </activeProfiles> + </settings>" > ${WORKDIR_PATH}/.m2/settings.xml + + - name: Setup maven settings (Windows) + if: runner.os == 'Windows' + env: + WORKDIR_PATH: ${{ github.workspace }} + JITEXECUTOR_NATIVE_REPO: ${{ github.event.inputs.jitexecutor_native_windows_repository }} + shell: pwsh + run: | + New-Item -Name ".m2" -Path "$env:WORKDIR_PATH" -ItemType Directory + $contentToAdd = @" + <settings> + <servers> + <server> + <id>apache.snapshots.https</id> + <username>${{ secrets.NEXUS_USER }}</username> + <password>${{ secrets.NEXUS_PW }}</password> + </server> + </servers> + <profiles> + <profile> + <id>additional_repos</id> + <repositories> + <repository> + <id>apache-kie-jitexecutor-native-staging-repository</id> + <name>Apache KIE JITExecutor Native Staging Repository</name> + <url>$env:JITEXECUTOR_NATIVE_REPO</url> + <layout>default</layout> + <releases> + <enabled>true</enabled> + <updatePolicy>never</updatePolicy> + </releases> + <snapshots> + <enabled>false</enabled> + <updatePolicy>never</updatePolicy> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>apache-kie-jitexecutor-native-staging-repository</id> + <name>Apache KIE JITExecutor Native Staging Repository</name> + <url>$env:JITEXECUTOR_NATIVE_REPO</url> + <releases> + <enabled>true</enabled> + <updatePolicy>never</updatePolicy> + </releases> + <snapshots> + <enabled>false</enabled> + <updatePolicy>never</updatePolicy> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> + <activeProfiles> + <activeProfile>additional_repos</activeProfile> + </activeProfiles> + </settings> + "@ + Add-Content "$env:WORKDIR_PATH\.m2\settings.xml" $contentToAdd + + - name: "Setup PNPM Maven Settings" + shell: bash + run: | + pnpm -r exec 'bash' '-c' 'echo --settings=${{ github.workspace }}/.m2/settings.xml >> .mvn/maven.config' + - name: "Bootstrap" id: bootstrap uses: ./.github/actions/bootstrap --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
