GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-web-app-docker/JavadockerPipelineScript at master · darshan-org/java-web-app-docker

Expand file tree

/

JavadockerPipelineScript

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
30 lines (28 loc) · 954 Bytes
/

JavadockerPipelineScript

Copy path

File metadata and controls

30 lines (28 loc) · 954 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
node
{
def buildNumber = BUILD_NUMBER
stage("Git clone") {
git url:'https://github.com/redmi-devops/java-web-app-docker.git',branch:"master"
}
stage("Maven Clean Package")
{
def mavenHome= tool name:"maven.3.6.2",type:"maven"
sh "${mavenHome}/bin/mvn clean package"
}
stage("Build Docker Image")
{
sh "docker build -t darshanreddymr/java-web-app-docker:${buildNumber} ."
}
stage("Docker login and Push"){
withCredentials([string(credentialsId: 'HubDocker', variable: 'HubDocker')]) {
sh "docker login -u darshanreddymr -p ${HubDocker}"
}
sh "docker build -t darshanreddymr/java-web-app-docker:${buildNumber} ."
}
stage("Deploy app in docker") {
sshagent(['DockerDev1Server']) {
sh "ssh -o StrictHostKeyChecking=no [email protected] docker rm -f javawebappcontainer || true"
sh "ssh -o StrictHostKeyChecking=no [email protected] docker run -d -p 9999:8080 --name javawebappcontainer darshanreddymr/java-web-app:${buildNumber}"
}
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.