jenkins.warfile, you can just run
java -jar jenkins.warfrom the command line
docker run -p 8080:8080 -p 50000:50000 -d jenkins/jenkinsor something like that (just replace the blueocean image name with
jenkins/jenkinsinstead; that’s the up to date image)
docker logs …with the container id to see the startup log which prints out the admin password
docker exec container_id cat /path/to/passwordFile.txt(the /var/jenkins_home one)
java -jarmethod of executing Jenkins (it comes with Jetty embedded so you can run it standalone without installing it into your own Jetty/Tomcat/other Java servlet container), you’ll have the simplest time finding the logs and files inside jenkins home compared to docker. Jenkins is developed by people working in Windows, Mac, and Linux (possibly BSD, too), so you shouldn’t have much trouble developing and running Jenkins natively. the Jenkins website, on the other hand, does not seem to be portable :(
docker-composewhich is relatively easy to generalize from for more complex setups (or just use the helm chart for Jenkins; there’s like hundreds of them lol)
I tried looking into this issue you mentioned https://issues.jenkins-ci.org/browse/JENKINS-55719
I assume this is related to jenkins git plugin. As a starting point, I tried a couple of tutorials to integrate jenkins with github, so that pull and push requests trigger build on jenkins.
I have been able to make it work.
I set up the webhook on one of github projects. Set up jenkins with SCM as github repo link. I exposed my local server to web using ngrok.
When I commit code and push it to my remote server. I get the following error.
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 403 No valid crumb was included in the request</title> </head> <body><h2>HTTP ERROR 403</h2> <p>Problem accessing /job/demoPipeline/. Reason: <pre> No valid crumb was included in the request</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/> </body> </html>
I have looked up a couple of solutions online but could not resolve it.
I have been hopping around on tutorials and not finding one single detailed guide to make it all work.
Can you please guide me to the right direction so I can get the basics down.