Fix version extraction and always use java17 to build from source (#50)

'loose' version_check to support non-semver
remove-version-check 0.4.9
Simon Dudley 7 months ago committed by GitHub
parent b4853bfd83
commit 6a20ddd329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      tasks/compile.yml
  2. 2
      tasks/install.yml

@ -23,13 +23,13 @@
version: "{{ besu_git_commit }}"
- name: Build Besu
command: ./gradlew --no-daemon --parallel clean assemble
shell: "JAVA_HOME=$(update-java-alternatives --list | grep 17 | tail -n 1 | awk '{print $3}') ./gradlew --no-daemon --parallel clean assemble"
args:
chdir: /tmp/besu
changed_when: true
- name: Get Besu Version
shell: "awk '/version=/ { gsub(/version=/,\"\"); print $1 }' gradle.properties"
shell: "basename build/distributions/*.tar.gz .tar.gz | sed 's/^besu-//'"
args:
chdir: /tmp/besu
register: besu_version_cmd

@ -46,7 +46,7 @@
- name: Update besu_download_url to provide support for older versions
set_fact:
besu_download_url: "https://hyperledger.jfrog.io/artifactory/besu-binaries/besu/{{ besu_version }}/besu-{{ besu_version }}.tar.gz"
when: "{{ besu_version is version('24.1.2', operator='le', version_type='semver') | bool == True}}"
when: "{{ besu_version is version('24.1.2', operator='le', version_type='loose') | bool == True}}"
- name: Extract Besu source to install directory
unarchive:

Loading…
Cancel
Save