-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
36 lines (35 loc) · 1.03 KB
/
Jenkinsfile
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
31
32
33
34
35
36
pipeline {
environment {
registryCredential = 'doc-cred'
}
agent any
stages {
stage('Checkout Code') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '35c95e91-8e6c-41f0-b9a7-168d5a1fc868', url: 'https://github.com/araju-sinha/docker_ecr_workflow.git/']]])
// git credentialsId: 'git-cred', url: 'https://github.com/araju-sinha/docker_ecr_workflow.git/'
// # git(url: 'https://github.com/araju-sinha/docker_ecr_workflow.git/', branch: 'master')
}
}
stage('listing image') {
steps {
bat '''docker images'''
}
}
stage('Building image') {
steps {
bat '''docker build -t mynode-img .'''
// dockerImage = docker.build("my-node-img:03")
}
}
// stage('Deploy Image') {
// steps{
// script {
// docker.withRegistry( '', registryCredential ) {
// dockerImage.push()
// }
// }
// }
// }
}
}