forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
30 lines (30 loc) · 1.18 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
pipeline {
agent {
label 'builder-backend-j8 || new-builder-backend-j8'
}
parameters {
gitParameter name: 'TAG',
type: 'PT_TAG',
defaultValue: 'master'
}
stages {
stage('Build and Push Dependency Image') {
steps {
checkout([$class: 'GitSCM',
branches: [[name: "${params.TAG}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'github-jenkins-user-token', url: 'https://github.com/draios/cloud-custodian.git']]
])
script {
docker.withRegistry("https://docker.internal.sysdig.com", 'jenkins-artifactory') {
sh "IMAGE_TAG=${params.TAG} make -f makefile-sysdig build-dependency-image"
sh "IMAGE_TAG=${params.TAG} make -f makefile-sysdig push-dependency-image"
sh "IMAGE_TAG=${params.TAG} make -f makefile-sysdig delete-dependency-image"
}
}
}
}
}
}