here is my problem:
I can launch a jenkins job which launches an automated Test. When this job fails and I go to the log.html, I don't see the screenshots. However when I go to the folder that hosts my Jenkins in localhost, and I open my log.html file, the screenshots appear correctly. Can you tell me why I can't see them on Jenkins please?
enter image description here
I tried to configure output path in Jenkins but nothing change this...
enter image description here
Thanks for reading this :)
Related
tell me, the link in EXECUTORS does not work in allure-report https://www.screencast.com/t/bwTs5kDZeA issues "Unable to access the site"
The link also does not work if you enter Jenkins by the address http://localhost:8080/, although the allure report is running.
I have to log a file system path in the Jenkins log after it completes the run. I know echo 'file://filesystem/folder' will be logged as a hyperlink in Jenkins pipeline, however clicking on it doesn't seem working. Is there a way to click on the link which will be redirected to file/folder system in your computer?
I'm providing this answer assuming that it's okay for you to copy the file in question from outside $JENKINS_HOME into the job's archive.
Within the job, in a build or post-build phase Execute Shell box:
cp $FILE_PATH $JENKINS_HOME/jobs/$JOB_NAME/builds/$BUILD_ID/archive
Where you only need to replace $FILE_PATH and the rest of parameters are known to Jenkins. A hyperlink to the last built file will appear in the list of the job's artifacts, visible on the job's main page, as well as in each build, specific to it.
I feel totally in the dark, and hope you guys can help.
So I have a jenkins server setup connect to p4v and everything running smoothly.
I can trigger the builds on jenkins manually without any problems.
Now however I'd like to setup so Jenkins (using the perforce plugin) acually polls from perforce everytime I submit something new in a specific folder.
This seems fairly straightforward running on linux, just adding a script file in perforce and a perforce trigger to run that file using curl to send a message to jenkins to start the build.
However i'm running windows, and I dont find any information about how to solve this particular problem on windows. Anyone, to help?
The main problem seems to be that all tutorials I find on this uses a .sh script which isnt run in windows, I wonder if there is some other way to do this in windows?
I managed to solve this by using the following Jenkins plugin:
https://wiki.jenkins.io/display/JENKINS/Build+Token+Trigger+Plugin
and curl:
https://curl.haxx.se/
If someone else has the same issue here is the step by step process I went through to set it up on Windows.
In your Jenkins project, enable: Trigger builds remotely (e.g., from scripts)
Enter an Authentication Token, can be anything, ex: buildCode
On the command line as p4 admin enter: p4 triggers
In the trigger, file go to the bottom
Enter the actual p4 trigger: SomeTriggerName change-commit //DepotLocationToTriggerOn/... %//DepotLocationOfScriptToBeTriggered/trigger.bat%
Observe: When the batch file to be run in the trigger is in a depot path it must be surrounded by %
Submit the trigger.bat to p4 in the choosen location. The batch file need to contain the following code C:\curl-7.60.0-win64-mingw\bin\curl.exe -u userID:APIToken JenkinsIP/job/TestJob/build?token=buildCode
Curl must be in that specific folder on the p4v server machine.
The userID and APIToken is found by going to the user drop down and enter Configure, then clicking API Token.
Hope this might help someone else with a similar problem :).
I am trying to use the
Build after other projects are built
feature of Jenkins. I am using Jenkins ver 2.73.2 and whenever I go to
Configure job -> Build Triggers
and specify my projects, the configuration does not get saved. There is no save button so when I navigate to another page the configuration gets lost.
I am using JenkinsFile in all projects to build it so this is the first thing I am doing from the UI.
Couldn't find a proper solution to this issue anywhere.
Try to restart your jenkins.
Possibly you my have harmed you jenkins folder in program files.
Please try to upgrade your jenkins
I am trying to execute job using local system as slave.
When I try to launch slave-agent.jnlp from jenkins as well as through command line it doesn't starts. Also, through command line it doesn't shows any error.
please let me know how to fix this issue.
The jenkins slave is started from the system where the job is expected to run later on.
Open the nodes page in firefox and click on the Launch button.
For more information:
https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-LaunchslaveagentviaJavaWebStart