Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

JENKINS

Step 4: Jenkins and Tomcat Setup


Copy the Jenkis.war file which was downloaded from the previous section and copy
it to the webapps folder in the tomcat folder.
Now open the command prompt. From the command prompt, browse to the
directory where the tomcat7 folder is location. Browse to the bin directory in this
folder and run the start.bat file

Requitement
JENKINS

Got to intial folder of jenkins copy it

"C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\jobs

And create new home folder add all file in last folder ……

Add jenkins_home to windows variable

And after you should restat jenkins this one way to restart jenkins :

Restart jenkins

http://localhost:8099/restart

change home directory

you should add jenkis_home variable entrer en zip version and change in web.xml en reportory .
JENKINS

Jenkins Beginner Tutorial 4 - How to use CLI (command line


interface)

http://localhost:8080/configureSecurity/

.manage jenkins>manage global security

Make that security is enabled or checked .

http://localhost:8080/cli/

download jenkins-cli.wjar

java -jar jenkins-cli.jar -s http://localhost:8099/ -webSocket help

go to root>confgurer

and use the ublic key that you have used or add new one

Add –auth username :password for authn


JENKINS
JENKINS

java -jar jenkins-cli.jar -s http://localhost:8099/ -webSocket safe-restart


JENKINS

Jenkins Beginner Tutorial 5 - How to create Users + Manage +


Assign Roles

1 create user it s administrer> gestion user >créer users

Gestiond e soles et urilisateur

Soit vous allez a dossier plugin dans vore jenjins home et ajouter le plugin la b

Role strategy plugin

Sinon allez gesiton plugin

Check enable security :

Choise autorisation :
JENKINS

Got administraer after choose


JENKINS

Crer un role

User

Crer un item role developeur our accedr tout projet commerceon par dev.*
JENKINS

Jenkins Beginner Tutorial 7 - Getting started with JOBS

Lancer pbuild

Cliquerq sur le build our ssavoi les detrai


JENKINS

Checkou le build remotely :

2 – triger remotely :

YOU CNA TRIGGER IN JENKINS URL BY ADDRESSE FROM OTHER MACHINE

JENKINS_URL/job/TEST1/build?token=TOKEN_NAME

Add tooken

Jenkin_url local :…..

3—BUILD AFTER OTHER PROJECT BUILD


JENKINS
JENKINS

Jenkins Beginner Tutorial 8 - Jenkins integration with GIT


(SCM)

1 – create hello world program in eclipse

2- creat job
JENKINS

This is not recommnede every minutes:/

Add git

For add credential github


JENKINS

Dont five id

You might also like