Question 6 of 32 from exam 300-910-DEVOPS: Implementing DevOps Solutions and Practices using Cisco Platforms

Question 6 of 32 from exam 300-910-DEVOPS: Implementing DevOps Solutions and Practices using Cisco Platforms

Question

#!/bin/bash Build Command
# apt-get -y install python3-pip
# pip install --upgrade pip
rm -rf automationSandboxTest || true
git clone https: //github.com/oborys/automationSanboxTest .git
export SEARCHPATH="$PWD/automationSanboxTest/”
for k in $(cat $SEARCHPATH/requriements.txt | cut -d ‘>’ -f£ 1 | cut -d \<’ -£ 1
| cut -d ‘= -£1
do
python -m pip install $k
done
echo
for k in $(find $SEARCHPATH -name *.py)
do
echo > msg. txt

python $k > /dev/null 2> msg.txt || true

export CODE=$(grep -c * msg.txt)

if [ S$CODE != 0 ]

then
echo “File: $k” >> error.message.txt
cat msg.txt >> error_message.txt
echo >> error.message.txt

fi
done
rm -rf msg.txt || true
cat error_message.txt
if [ $(cat error_message.txt| we -1) != 0 ]
then
exit 1
fi
++find /data/bms/webapps/jenkins/workspace/team_team_devnet-learning-labs-
automatiom/Always On_Sandbox_testing/automationSandboxTest/ -name ‘*.py’
+ for k in ‘$(find $SEARCHPATH -name *.py)’
+ echo
+ python /data/bms/webapps/jenkins/workspace/team_team_devnet-learning-labs-
automatiom/Always On_Sandbox, ( testing/automationSandboxTest/alwaysOnSandboxch
eck.py
++ grep -c ‘4 msg. txt

export CODE=0

CODE=0

rm -rf msg. txt
cat error_message.txt

cat: error_message.txt: No such file or directory

Build step ‘Virtualenv Builder’ marked build as failure

Notifying upstream projects of job completion

Finished: FAILURE

+
+
+0007 .o.yr Part of Console Output
+
+

Refer to the exhibit.

How should the Jenkins job be troubleshooted based on the error provided?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.