Skip to content

pedrohso90/first_cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CICD Initials

  • pre reqs: docker swarm

create network docker

docker network create --driver overlay cicd

build image, prepare dir and deploy jenkins stack cicd

mkdir jenkins_home
sudo chown 1000:1000 jenkins_home
docker build -t jenkins:0.0.1 -f Dockerfile .
docker stack deploy -c jenkins.yml cicd

deploy sonar stack cicd

docker stack deploy -c sonar.yml cicd

steps create cicd

  • access http://localhost:8080 Jenkins
  • install plugins
  • create user and login
  • Jenkins OK
  • create first job type pipeline
  • in pipeline script add script pipeline.groovy
  • access http://localhost:9000 Sonar
  • login user admin/admin
  • create token in profile user
  • in jenkins edit job, add token in pipeline script
  • execute job

About

CICD Initials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •