-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
37 lines (29 loc) · 924 Bytes
/
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
37
#!/usr/bin/env groovy
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
timeout(time: 1, unit: 'HOURS')
timestamps()
}
stages {
stage('Build & Test') {
steps{
nodejs(nodeJSInstallationName: 'nodejs12x') {
sh 'npm install && node --version'
}
}
}
stage('Build Docker Image using Code Build') {
steps{
awsCodeBuild credentialsId: 'was-code-build-grovvy', credentialsType: 'jenkins', downloadArtifacts: 'false', projectName: 'fleet-safety-service', region: 'ap-south-1', sourceControlType: 'project'
}
}
stage('Deploy in ECS') {
steps{
sh("echo kunal")
}
}
}
}