Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ hosts:
user: admin

- iinthecloud:
ibmi73-ppc64_be-1: {ip: 65.183.160.52, user: nodejs}
ibmi73-ppc64_be-2: {ip: 65.183.160.59, user: nodejs}
ibmi74-ppc64_be-1: {ip: 65.183.160.52, user: nodejs}
ibmi74-ppc64_be-2: {ip: 65.183.160.59, user: nodejs}

- rzkh:
ibmi73-ppc64_be-1:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

- name: ibmi73 | remove old repositories
- name: ibmi74 | remove old repositories
ansible.builtin.yum_repository:
name: "{{ item }}"
reposdir: /QOpenSys/etc/yum/repos.d
Expand All @@ -9,7 +9,7 @@
- ibm
- ibm-7.3

- name: ibmi73 | install IBM i repositories
- name: ibmi74 | install IBM i repositories
ansible.builtin.yum:
name: ibmi-repos
state: present
8 changes: 8 additions & 0 deletions ansible/roles/bootstrap/files/ibmi-git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/QOpenSys/usr/bin/ksh

# Create a git wrapper at /QOpenSys/pkgs/bin/git-jenkins and
# configure it as the "git tool" in Jenkins UI because JV1 Java
# which forces LIBPATH=/usr/lib prior to calling any program
# IBM i open source packages are intalled under /QOpenSys/...
unset LIBPATH
exec /QOpenSys/pkgs/bin/git "$@"
4 changes: 4 additions & 0 deletions ansible/roles/bootstrap/tasks/partials/ibmi74.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: "ibmi : create git wrapper"
ansible.builtin.copy:
dest: /QOpenSys/pkgs/bin/git-jenkins
src: "ibmi-git.sh"
1 change: 0 additions & 1 deletion ansible/roles/java-base/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ packages: {
'debian12': 'openjdk-17-jre-headless',
'fedora': 'java-17-openjdk-headless',
'freebsd': 'openjdk17-jre',
'ibmi': 'openjdk-11-ea',
'macos': 'temurin17',
'rhel7': 'java-11-openjdk',
'rhel8': 'java-17-openjdk',
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/jenkins-worker/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
init: {
aix: ['aix72', 'aix73'],
freebsd: 'freebsd',
ibmi: 'ibmi73',
ibmi: 'ibmi74',
macos: 'macos',
systemd: ['centos7', 'debian', 'fedora', 'rhel7', 'rhel8', 'rhel9', 'ubuntu1604', 'ubuntu1804','ubuntu2204'],
svc: 'smartos',
Expand Down Expand Up @@ -61,7 +61,7 @@ jenkins: "{{ jenkins_init[init_type] }}"

# some os'es needs different paths to java. add them here.
java_path: {
'ibmi73': '/QOpenSys/pkgs/lib/jvm/openjdk-11/bin/java',
'ibmi74': '/QOpenSys/QIBM/ProdData/JavaVM/jdk17/64bit/bin/java',
'macos10.15': 'java',
'macos11': 'java',
'macos11.0': 'java',
Expand Down
6 changes: 3 additions & 3 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ "$DONTSELECT_COMPILER" != "DONT" ]; then
*x64* ) SELECT_ARCH=X64 ;;
*arm64* ) SELECT_ARCH=ARM64 ;;
*armv7l* ) SELECT_ARCH=ARMV7L ;;
*ibmi73* ) SELECT_ARCH=IBMI73 ;;
*ibmi74* ) SELECT_ARCH=IBMI74 ;;
esac
fi

Expand Down Expand Up @@ -191,13 +191,13 @@ elif [ "$SELECT_ARCH" = "S390X" ]; then
echo "Compiler set to $COMPILER_LEVEL"
fi

elif [ "$SELECT_ARCH" = "IBMI73" ]; then
elif [ "$SELECT_ARCH" = "IBMI74" ]; then
if [ "$NODEJS_MAJOR_VERSION" -gt "22" ]; then
export COMPILER_LEVEL="12"
else
export COMPILER_LEVEL="10"
fi
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on IBMI73"
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on IBMI74"
export CC="ccache gcc-${COMPILER_LEVEL}"
export CXX="ccache g++-${COMPILER_LEVEL}"
export LINK="g++-${COMPILER_LEVEL}"
Expand Down
Loading