-
Bug
-
Resolution: Not A Defect
-
Major
-
None
sh '''sudo npm install -g webdriver-manager
sudo webdriver-manager update --standalone
sudo webdriver-manager start &
export DISPLAY=:1
echo "selenium server started"
sleep 100
echo "Tests Starting in 100 secs"
protractor e2e/protractor.conf.js
echo "shutting down selenium server"
sudo webdriver-manager shutdown'''
publishHTML(target: [allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'reports', reportFiles: 'index.html', reportName: 'OneCreative UI Test Report'])
Pipeline doesn't execute the steps after "protractor e2e/protractor.conf.js" when the test fails with the exit code 1. Right now for the report generation to work, i'm diverting the exit code to 0 when it returns 1.