-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
22 lines (21 loc) · 962 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pipeline {
agent any
stages {
stage('pull code') {
steps {
git branch: 'main', credentialsId: 'github-credentials', url: '[email protected]:xubeijun/certbot-toy.git'
}
}
stage('build project') {
steps {
sh '''echo "开始构建."
echo "构建完成."'''
}
}
stage('deploy project') {
steps {
sshPublisher(publishers: [sshPublisherDesc(configName: '${remote_host_name}', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'echo "Jenkins pipelien success"', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'pipeline-test', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'scripts/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}
}