-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcicd-dev.groovy
31 lines (27 loc) · 1.11 KB
/
cicd-dev.groovy
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
node('linux')
{
stage ('Poll') {
// Poll from upstream:
checkout([
$class: 'GitSCM',: 'GitSCM',
branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
userRemoteConfigs: [[url: 'https://github.com/vim/vim.git']]])
// Poll for local changes
checkout([
$class: 'GitSCM',
branches: [[name: '*/main']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
userRemoteConfigs: [[url: 'https://github.com/zopencommunity/vimport.git']]])
}
stage('Build') {
build job: 'Port-Pipeline',
parameters: [
string(name: 'PORT_GITHUB_REPO', value: 'https://github.com/zopencommunity/vimport.git'),
string(name: 'PORT_DESCRIPTION', value: 'vim editor' ),
string(name: 'BUILD_LINE', value: 'DEV')
]
}
}