You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from the docker desktop, open the CLI of the container (or winpty docker exec -it <container name> /bin/bash) and see the content of /var/jenkins_home/secrets/initialAdminPassword
Jenkins for maven builds on Windows (based on this tutorial)
docker network create jenkins
run a jenkins container (from the cmd, not git bash)
goto http://localhost:8080, enter the admin password and click on "Install suggested plugins". hit retry if any failed.
define "new item" as pipline, clone the example repository to "%HOMEDRIVE%%HOMEPATH%/Documents/tutorials" (or other mentioned previously "/home" directory).
Make sure that "app-maven-example" dir is git inited (or run git init).
As a path to repository, insert "/home/Documents/tutorials/app-maven-example"
Create a Jenkinsfile in the "app-maven-example" path (don't forget to git-commit if any changes are made):
goto Blue Ocean and run the pipeline. If you get a ca.pem error, pull the docker image on the machine by running docker pull maven:3.8.1-adoptopenjdk-11
if getting "Permission denied" on running the deliver.sh, run git update-index --add --chmod=+x jenkins/scripts/deliver.sh and commit
notice that there is a maven-jar-plugin that generates the MANIFEST and maven-dependency-plugin that downloads dependencies if are not present (like log4j in our case)