Skip to content

Bugfixroopa #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
node{

stage('SCM Checkout'){
git url: 'https://github.com/MithunTechnologiesDevOps/java-web-app-docker.git',branch: 'master'
git url: 'https://github.com/roopa99/java-web-app-docker.git',branch: 'master'
}

stage(" Maven Clean Package"){
def mavenHome = tool name: "Maven-3.5.6", type: "maven"
def mavenCMD = "${mavenHome}/bin/mvn"
sh "${mavenCMD} clean package"

withMaven(jdk: 'JAVA_HOME', maven: 'MAVEN_HOME'){
sh "mvn claen package"
}
}


stage('Build Docker Image'){
sh 'docker build -t dockerhandson/java-web-app .'
sh 'docker build -t roopa45/java-web-app.'
}

stage('Push Docker Image'){
withCredentials([string(credentialsId: 'Docker_Hub_Pwd', variable: 'Docker_Hub_Pwd')]) {
sh "docker login -u dockerhandson -p ${Docker_Hub_Pwd}"
}
sh 'docker push dockerhandson/java-web-app'
wwithCredentials([usernameColonPassword(credentialsId: 'dockerhubroopa', variable: 'dockerhub')]) {
sh 'docker push roopa45/java-web-app.'
}

stage('Run Docker Image In Dev Server'){
Expand All @@ -38,3 +35,4 @@ node{


}
}
2 changes: 1 addition & 1 deletion index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ entries:
- apiVersion: v2
appVersion: latest
created: "2020-12-02T01:06:54.465065358Z"
description: A Helm chart of Mithun tech no for Kubernetes
description: A Helm chart of Mithun tech no for Kubernetes for roopa is good looking girl(beautiful) bugfix
digest: 17a123dcb6baf659d538691a17bd29510eb36e3a81fd949ecfed4fcafb4804de
name: javawebapp
type: application
Expand Down