-
-
Notifications
You must be signed in to change notification settings - Fork 171
Add IBM i initial playbooks #1923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9242131
Add new IBM i system
43498ed
fixup! Add new IBM i system
sam-github fe606a4
Add "creates" arg for IOJS usr creation
ThePrez 45ce2cb
fixup tap2junit executable
ThePrez 7ac058b
Switch to Python 3
ThePrez 752f36b
Remove IBM i "su"
ThePrez 3b28da3
fixup! fixup! Add new IBM i system
sam-github ffd154e
Back to Python 2 for now
ThePrez 1193274
Remove repeated "install packages IBMi"
ThePrez 7a6819c
Use QSH instead of QP2SHELL2 to have descriptors set up, check if job…
ThePrez 43303f8
fixup QIBM_USE_DESCRIPTOR_STDIO
ThePrez 590e1a2
set os400.stdio.convert Java property
ThePrez 782c9a8
Add manual steps for IBM i
ThePrez 5779d6e
Fix $HOME issue for ccache
ThePrez fe07569
fixup! $JENKS_HOME/$HOME setting
ThePrez 85246c2
fixup! Add new IBM i system
richardlau 3bb3676
fixup! Add new IBM i system
richardlau 3472797
Update comment with more detail on use_backend issue
ThePrez 91fb0a9
Remove defunct comment
ThePrez a1a8ea7
Remove redundant "manual steps" phrase
ThePrez 43f7fec
Cleanup IBM i manual steps
ThePrez 7841b20
Remove Ansible 2.7.6 requirement for ibmi
ThePrez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
ansible/roles/jenkins-worker/tasks/partials/tap2junit/ibmi.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
|
|
||
| # | ||
| # install tap2junit ibmi | ||
| # | ||
|
|
||
| - name: install tap2junit | ||
| pip: | ||
| name: tap2junit | ||
| state: present | ||
| executable: /QOpenSys/pkgs/bin/pip2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ | |
| # | ||
|
|
||
| - name: install tap2junit | ||
| pip: name=tap2junit state=present | ||
| pip: name=tap2junit state=present | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/QOpenSys/pkgs/bin/bash | ||
| CIJOBNAME="JENKINS_CI" | ||
| SBMJOB_OPTS="JOB($CIJOBNAME) USER(IOJS)" | ||
|
|
||
| export PATH=/QOpenSys/pkgs/lib/ccache:/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin | ||
| export PASE_PATH=$PATH | ||
| export HOME={{ home }}/{{ server_user }} | ||
| export NODE_COMMON_PIPE="$HOME/test.pipe" | ||
| export NODE_TEST_DIR="$HOME/tmp" | ||
| export JOBS=4 | ||
| export OSTYPE=ibmi | ||
| export QIBM_USE_DESCRIPTOR_STDIO=Y | ||
|
|
||
| unset LC_ALL | ||
|
|
||
| if [[ $(/QOpenSys/usr/bin/system "WRKACTJOB JOB($CIJOBNAME)" | grep -i $CIJOBNAME | wc -l) != "1" ]] | ||
| then | ||
| echo "Job already running" | ||
| exit 1 | ||
| fi | ||
|
|
||
| export START_CMD="{{ java_path[os] }} -Xmx{{ server_ram|default('128m') }} -Dos400.stdio.convert=N -jar {{ home }}/{{ server_user }}/slave.jar -secret {{ secret }} -jnlpUrl {{ jenkins_url }}/computer/{{ inventory_hostname }}/slave-agent.jnlp >{{ home }}/{{ server_user }}/jenkins.log 2>&1 " | ||
|
|
||
| echo $START_CMD | ||
|
|
||
| exec /QOpenSys/usr/bin/system -v -kpiveO "SBMJOB CMD(QSH CMD('echo starting Jenkins slave && cd $HOME && env && exec $START_CMD')) CPYENVVAR(*YES) PRTDEV(*USRPRF) ALWMLTTHD(*YES) $SBMJOB_OPTS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.