Skip to content
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

Update Jenkinsfile #9

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6fdab2c
Update Jenkinsfile
irfanansari568 Oct 8, 2020
1f5a623
Update Jenkinsfile
irfanansari568 Oct 8, 2020
d501a0c
Update Jenkinsfile
irfanansari568 Oct 8, 2020
fffdc73
Update Jenkinsfile
irfanansari568 Oct 8, 2020
7d8ea44
Update Jenkinsfile
irfanansari568 Oct 8, 2020
b3086fc
Update Jenkinsfile
irfanansari568 Oct 8, 2020
60d56da
Update Jenkinsfile
irfanansari568 Oct 8, 2020
4b41398
Update Jenkinsfile
irfanansari568 Oct 8, 2020
354bbae
Update Jenkinsfile
irfanansari568 Oct 8, 2020
f613de2
Update Jenkinsfile
irfanansari568 Oct 8, 2020
24648ee
Update Jenkinsfile
irfanansari568 Oct 8, 2020
ba13c14
Update Jenkinsfile
irfanansari568 Oct 8, 2020
91e72c2
Update Jenkinsfile
irfanansari568 Oct 8, 2020
52bfa3b
Update Jenkinsfile
irfanansari568 Oct 8, 2020
d26cd90
Update Jenkinsfile
irfanansari568 Oct 8, 2020
73343d3
Update Jenkinsfile
irfanansari568 Oct 8, 2020
6e1d797
Update Jenkinsfile
irfanansari568 Oct 8, 2020
9cfbb03
Update Jenkinsfile
irfanansari568 Oct 8, 2020
1dfbe7a
Update Jenkinsfile
irfanansari568 Oct 8, 2020
52766a2
Update Jenkinsfile
irfanansari568 Oct 8, 2020
c613f55
Update Jenkinsfile
irfanansari568 Oct 8, 2020
ae4fb5b
Update Jenkinsfile
irfanansari568 Oct 8, 2020
76bd4ef
Update Jenkinsfile
irfanansari568 Oct 8, 2020
9b8b0e3
Update Jenkinsfile
irfanansari568 Oct 8, 2020
e5f1c0e
Update Jenkinsfile
irfanansari568 Oct 8, 2020
2e58c17
Update Jenkinsfile
irfanansari568 Oct 8, 2020
f3be005
Update Jenkinsfile
irfanansari568 Oct 8, 2020
36c31ca
Update Jenkinsfile
irfanansari568 Oct 8, 2020
1d068cf
Update Jenkinsfile
irfanansari568 Oct 8, 2020
e9494de
Update Jenkinsfile
irfanansari568 Oct 8, 2020
8a15355
Update Jenkinsfile
irfanansari568 Oct 8, 2020
0af3d70
Update Jenkinsfile
irfanansari568 Oct 8, 2020
ca60cf6
Update Jenkinsfile
irfanansari568 Oct 8, 2020
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
13 changes: 8 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ node {
stage('Clone repository') {
/* Cloning the Repository to our Workspace */

checkout scm
git branch: 'patch-1', url: 'https://github.com/irfanansari568/nodeapp.git'


}

stage('Build image') {
/* This builds the actual image */

app = docker.build("anandr72/nodeapp")
app = docker.build("irfanansari568/nodeapp")
}

stage('Test image') {
Expand All @@ -24,9 +26,10 @@ node {
/*
You would need to first register with DockerHub before you can push images to your account
*/
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') {
sh "docker login docker.io"
sh "docker push ansari02/nodeapp:10"

}
echo "Trying to Push Docker Build to DockerHub"
}
Expand Down