---
title: "Discussion on \"Jenkins Declarative Pipeline with copying code from GitHub and build code through docker by pushing the image to dockerHub and deploying using AWS.\" | Hashnode"
description: "Discussion on \"Jenkins Declarative Pipeline with copying code from GitHub and build code through docker by pushing the image to dockerHub and deploying using AWS.\". Installing Java on Master Node\nsudo apt update\n\n\n\nsudo apt install openjdk-11-jre\n\n\nChecking Java version\n\n\njava --version\n\n\nInstalling Jenkins\n\n\n\n\nNow, go to the Master node ec2 instance and add port 8080 in the security group.\n\n\n\n-> Copy and paste ..."
url: "https://hashnode.com/posts/jenkins-declarative-pipeline-with-copying-code-from-github-and-build-code-through-docker-by-pushing-the-image-to-dockerhub-and-deploying-using-aws/64ec6f41a9532d8ba3cde30d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Jenkins Declarative Pipeline with copying code from GitHub and build code through docker by pushing the image to dockerHub and deploying using AWS.](https://journeytodevops.hashnode.dev/jenkins-declarative-pipeline-with-copying-code-from-github-and-build-code-through-docker-by-pushing-the-image-to-dockerhub-and-deploying-using-aws?utm_source=hashnode&utm_medium=feed)

Installing Java on Master Node sudo apt update sudo apt install openjdk-11-jre Checking Java version java --version Installing Jenkins Now, go to the Master node ec2 instance and add port 8080 in the security group. -> Copy and paste ...

Aug 28, 2023 · 7 min read · journeytodevops.hashnode.dev  
Read the article

-   [#jenkins](https://hashnode.com/tag/jenkins)
-   [#pipeline](https://hashnode.com/tag/pipeline)
-   [#ci-cd](https://hashnode.com/tag/ci-cd)
-   [#cicd-pipelines](https://hashnode.com/tag/cicd-pipelines)
-   [#90daysofdevops](https://hashnode.com/tag/90daysofdevops)

## Written by

[Manish Negi](https://hashnode.com/@manishnegi442)

@manishnegi442

  
[View profile](https://hashnode.com/@manishnegi442)

Cloud Devops Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Suraj barik](https://hashnode.com/@surajc5)

[Aug 28, 2023](https://hashnode.com/posts/jenkins-declarative-pipeline-with-copying-code-from-github-and-build-code-through-docker-by-pushing-the-image-to-dockerhub-and-deploying-using-aws/64ec6f41a9532d8ba3cde30d/comment/64ec8cf3c07e573b4c5a2d6a)

Thank you so much for sharing [Manish Negi](https://hashnode.com/@manishnegi442). I have found it extremely helpful.
