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

Dev #1

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
1d0a5c8
Update Jenkinsfile
kandula1578 Aug 3, 2022
cca0067
Update Jenkinsfile
kandula1578 Aug 3, 2022
02c11b4
Update Jenkinsfile
kandula1578 Aug 3, 2022
18e2418
Update Jenkinsfile
kandula1578 Aug 3, 2022
b9c2ffc
Update Jenkinsfile
kandula1578 Aug 3, 2022
9aeb2b9
Update Jenkinsfile
kandula1578 Aug 3, 2022
e5193a0
Update Jenkinsfile
kandula1578 Aug 3, 2022
5a42fa8
Update Jenkinsfile
kandula1578 Aug 3, 2022
65662a9
Update Jenkinsfile
kandula1578 Aug 3, 2022
496b9df
Update Jenkinsfile
kandula1578 Aug 3, 2022
f67259c
Update Jenkinsfile
kandula1578 Aug 3, 2022
b7a5c5b
Update Jenkinsfile
kandula1578 Aug 3, 2022
d94a971
Update Jenkinsfile
kandula1578 Aug 3, 2022
c729932
Update Jenkinsfile
kandula1578 Aug 3, 2022
91e99c3
Update Jenkinsfile
kandula1578 Aug 3, 2022
dc68ce5
Update Jenkinsfile
kandula1578 Aug 3, 2022
b286576
Update Jenkinsfile
kandula1578 Aug 3, 2022
3ea3789
Update Jenkinsfile
kandula1578 Aug 3, 2022
e71f53a
Update Jenkinsfile
kandula1578 Aug 3, 2022
4aa6800
Update Jenkinsfile
kandula1578 Aug 3, 2022
c1aa651
Update Jenkinsfile
kandula1578 Aug 3, 2022
b38600f
Update Jenkinsfile
kandula1578 Aug 3, 2022
5850259
Update Jenkinsfile
kandula1578 Aug 3, 2022
f965a36
Update Jenkinsfile
kandula1578 Aug 3, 2022
cbe6fe9
Update Jenkinsfile
kandula1578 Aug 3, 2022
2c4cbd1
Update Jenkinsfile
kandula1578 Aug 3, 2022
9a77e41
Update Jenkinsfile
kandula1578 Aug 3, 2022
5a60ccf
Update Jenkinsfile
kandula1578 Aug 3, 2022
2982242
Update Jenkinsfile
kandula1578 Aug 3, 2022
dd8bb6b
Update Jenkinsfile
kandula1578 Aug 3, 2022
afa4dc2
Update Jenkinsfile
kandula1578 Aug 3, 2022
4a64ac8
Update Jenkinsfile
kandula1578 Aug 3, 2022
b033aea
Update Jenkinsfile
kandula1578 Aug 3, 2022
7b6021f
Update Jenkinsfile
kandula1578 Aug 4, 2022
ae59270
Update Jenkinsfile
kandula1578 Aug 4, 2022
20f6d4f
Update Jenkinsfile
kandula1578 Aug 4, 2022
f8be428
Update Jenkinsfile
kandula1578 Aug 10, 2022
b41c494
Update Jenkinsfile
kandula1578 Aug 10, 2022
c4209e0
Update Jenkinsfile
kandula1578 Oct 24, 2022
2c58c5b
Update Jenkinsfile
kandula1578 Oct 24, 2022
03ecf0e
Update README.md
kandula1578 Oct 24, 2022
e6e4002
Update Jenkinsfile
kandula1578 Oct 24, 2022
d8ea429
Update Jenkinsfile
kandula1578 Oct 24, 2022
de8707b
Update Jenkinsfile
kandula1578 Oct 24, 2022
a7f0c92
Update Jenkinsfile
kandula1578 Oct 24, 2022
4141736
Update Jenkinsfile
kandula1578 Oct 24, 2022
24959c9
Update Jenkinsfile
kandula1578 Oct 24, 2022
6c87db0
Update Jenkinsfile
kandula1578 Oct 24, 2022
1f50c80
Update Jenkinsfile
kandula1578 Oct 24, 2022
77c1afb
Update Jenkinsfile
kandula1578 Oct 24, 2022
595ce81
Update Jenkinsfile
kandula1578 Oct 25, 2022
1b9bcac
Update Jenkinsfile
kandula1578 Oct 25, 2022
a17bdcf
Update Jenkinsfile
kandula1578 Oct 25, 2022
8444240
Update Jenkinsfile
kandula1578 Oct 25, 2022
be2e849
Update Jenkinsfile
kandula1578 Oct 25, 2022
31a5f5f
Update Jenkinsfile
kandula1578 Oct 25, 2022
22e2f5f
Update Jenkinsfile
kandula1578 Oct 25, 2022
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
26 changes: 15 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
pipeline {
agent any
agent any
parameters {
choice(name: 'Branch', choices: ['master', 'dev', 'uat'], description: 'Pick something')
}
environment {
DOCKERHUB_CREDENTIALS = credentials('valaxy-dockerhub')
DOCKERHUB_CREDENTIALS = credentials('kandula-dockerhub')
// BRANCH = "${env.GIT_BRANCH}.${BUILD_NUMBER}"
// TAG = BRANCH.substring(7,BRANCH.length())
}
stages {
stage('SCM Checkout') {
steps{
git 'https://github.com/ravdy/nodejs-demo.git'
git 'https://github.com/kandula1578/nodejs.git'
}
}

stage('Build docker image') {
steps {
sh 'docker build -t valaxy/nodeapp:$BUILD_NUMBER .'
steps {
sh 'docker build -t kandula17/nodeapp:${Branch} .'
}
}
stage('login to dockerhub') {
steps{
sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin'
}
}
stage('push image') {
steps{
sh 'docker push valaxy/nodeapp:$BUILD_NUMBER'
}
}
// stage('push image') {
// steps{
// sh 'docker push kandula17/nodeapp:${GIT_BRANCH#*/}'
// }
// }
}
post {
always {
sh 'docker logout'
}
}
}

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# nodeapp
# nodeapp