Skip to content

Commit 5f766f8

Browse files
committed
Automation Toolkit Release v2024.2.2
1 parent b6186c0 commit 5f766f8

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ COPY --chown=cd3user:cd3user jenkins_install/plugins.txt ${REF}/plugins.txt
6969

7070
RUN sudo java -jar ${JENKINS_INSTALL}/jenkins-plugin-manager.jar --war ${JENKINS_INSTALL}/jenkins.war --verbose -f ${REF}/plugins.txt && \
7171
sudo chown -R cd3user:cd3user ${JENKINS_INSTALL} && \
72-
sudo chmod +x ${JENKINS_INSTALL}/jenkins.sh
72+
sudo chmod +x ${JENKINS_INSTALL}/jenkins.sh

OCIWorkVMStack/scripts/installToolkit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ echo "********************************************************" >> $logfile 2>&1
6767
echo "########################################################" >> $logfile 2>&1
6868
echo "Downloading CD3 Automation Toolkit Code from Github " >> $logfile 2>&1
6969
echo "########################################################" >> $logfile 2>&1
70-
sudo git clone https://github.com/oracle-devrel/cd3-automation-toolkit.git -b develop $toolkit_dir >> $logfile 2>&1
70+
sudo git clone https://github.com/oracle-devrel/cd3-automation-toolkit.git -b develop $toolkit_dir >> $logfile 2>&1
7171
stop_exec
7272
sudo ls -la /tmp/githubCode >> $logfile 2>&1
7373
echo "Downloading CD3 Automation Toolkit Code from Github completed successfully" >> $logfile 2>&1

cd3_automation_toolkit/setUpOCI.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,12 @@ def execute_showoci(outdir, prefix, config_file_path):
13301330
if not os.path.isfile("/cd3user/oci_tools/oci-python-sdk/examples/showoci/showoci.py"):
13311331
get_latest_showoci(outdir, prefix, config_file=config_file_path)
13321332
cmd = "python /cd3user/oci_tools/oci-python-sdk/examples/showoci/showoci.py -a"
1333+
if auth_mechanism == "instance_principal":
1334+
cmd += " -ip"
1335+
elif auth_mechanism == "session_token":
1336+
cmd += " -is"
1337+
else:
1338+
cmd += " -cf "+config_file_path
13331339
split = str.split(cmd)
13341340
dirname = prefix + "_showoci_report"
13351341
resource = "showoci_report"
@@ -1342,14 +1348,12 @@ def execute_showoci(outdir, prefix, config_file_path):
13421348
else:
13431349
commonTools.backup_file(outdir, resource, out_rep)
13441350
out_file = out_rep+"/"+prefix
1345-
out = ["-cf", config_file_path, '-csv', out_file]
1346-
cmd = cmd + " " + out[0] + " " + out[1] + " " + out[2] + " " + out[3]
1351+
out = ['-csv', out_file]
1352+
cmd = cmd + " " + out[0] + " " + out[1]
13471353
split.extend(out)
13481354
print("Executing: " + cmd)
13491355
execute(split, config_file_path)
1350-
print("\n##############################")
1351-
print("ShowOCI report is available at : "+out_rep)
1352-
print("\n##############################")
1356+
13531357

13541358

13551359
def run_showoci(outdir, prefix, config_file,sub_options=[]):

jenkins_install/scriptler/scripts/AdditionalFilters.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ html_to_be_rendered = """
1919
<tr>
2020
<td ><input type=\"hidden\" id=\"sep1\" name=\"value\" value=\"reg_filter=\"></td>
2121
<td><label for="value">Select Regions (Optional) :</label></td>
22-
<td ><select multiple name="value" style="width:20%;">${reg_options} </select></td>
22+
<td ><select multiple name="value" style="width:150px;">${reg_options} </select></td>
2323
<td ><input type=\"hidden\" id=\"sep1\" name=\"value\" value=\"@\"></td>
2424
</tr><tr></tr><tr></tr><tr></tr>
2525
<tr>

0 commit comments

Comments
 (0)