Skip to content

Commit 507b768

Browse files
author
Sandip Das
committed
v2 changes
1 parent fb2f0bf commit 507b768

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

Jenkinsfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ pipeline {
55

66
stages {
77

8-
stage('Git') {
8+
stage('Source:Git') {
99
steps {
1010
git 'https://github.com/sd031/aws_codebuild_codedeploy_nodeJs_demo.git'
1111
}
1212
}
1313

14-
stage('Build') {
14+
stage('Build:Node') {
1515
steps {
1616
sh 'npm install'
1717
// sh '<<Build Command>>' run any commands as needed
@@ -23,5 +23,11 @@ pipeline {
2323
// sh 'node test'
2424
// }
2525
// }
26+
27+
stage('Save:Artifact') {
28+
steps {
29+
archiveArtifacts artifacts: ./
30+
}
31+
}
2632
}
2733
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config = require('config')
55
console.log(config);
66

77
app.get('/', (req, res) => {
8-
res.send('CICD App V4!')
8+
res.send('CICD App V2!')
99
})
1010

1111
app.get('/status', (req, res) => {

sample.txt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1 @@
1-
Learn how to make 2x Faster Docker Build in AWS Cloud using AWS CodeBuild Cache system
2-
Build Cache is so important part and many miss the point
3-
1) Process time reduce by nearly up to 90%
4-
2) Don't compile which is already compiled
5-
3) Re-use the assets/artifacts that you have made
6-
4) Don't pull the entire repo, instead just pull what exactly changes (saves a lot of time)
7-
5) If you are building docker containers, it makes a lot of sense to store docker layers
8-
6) If your dependencies are all downloaded from the internet, don't do it every time instead store in s3 so that download will be a lot faster
9-
10-
This list can go on and on...
11-
12-
Feel free to watch this tutorial and let me know if have any query
13-
14-
https://www.youtube.com/watch?v=X79lCrFpEmU
1+
This is a sample build file

samplepr

Whitespace-only changes.

0 commit comments

Comments
 (0)