Skip to content

docker_commands

Sandeep Valapishetty edited this page Apr 3, 2020 · 3 revisions

Jenkins pipeline with sonar integration :

  1. Download jenkins and follow install instuctions
  2. Download sonar and follow install instructions
  3. Create pipeline based project
  4. Update Jenkins job to read instructions from pipeline file

Local settings : docker container start jenkins_siri_dad docker container start sonarqube_siri_dad1

Rename running docker container docker rename old_container_name new_container_name

How to create network between two containers : https://www.digitalocean.com/community/questions/how-to-ping-docker-container-from-another-container-by-name

Slack Test - Curl Command:

curl -X POST --data-urlencode "payload={"channel": "#build-team", "username": "webhookbot", "text": "This is posted to #build-team and comes from a bot named webhookbot.", }" https://hooks.slack.com/services/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

An awesome plugin to validate Jenkins Pipeline File syntax : There is Visual Studio Plugin for validating jenkins file. Below link will help you to understand how this plugin works https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/

Hybris

Clone this wiki locally