-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
43 lines (38 loc) · 1.09 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
37
38
39
40
41
42
43
pipeline {
// environment {
// NPM_CONFIG_CACHE = "${WORKSPACE}/.npm"
// }
agent any
triggers {
githubPush()
}
//agent { docker { image 'node:20.11.1-alpine3.19' } }
tools {nodejs "nodetest"} //name should be similar to name used for installer in the global tool configuration.
stages {
stage('build') {
steps {
sh 'echo hewo'
sh 'node -v'
sh 'npm install'
sh 'ng build'
}
}
stage('Deploy to S3 From Develop') {
steps {
script {
// def deployTargets = [
// [env: 'dev', regions: [[region: 'us-east-2']], askForPermission: false, artiRepo: 'drc-dev', acct: 'leAcctNum', s3Bucket: 's3_BUCKET', acctNum: 'leAcctNum', approvers: 'approvers'],
// ]
withAWS(region: "us-east-1") {
s3Upload(
bucket: "testbucket-an",
file: 'dist',
path: "all/angtest",
cacheControl: 'no-cache'
)
}
}
}
}
}
}