Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maven_test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
郭灿峰
maven_test
Commits
7cb602b9
Commit
7cb602b9
authored
Jul 08, 2020
by
郭灿峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
b108ff83
Pipeline
#20
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
Jenkinsfile
Jenkinsfile
+17
-17
No files found.
Jenkinsfile
View file @
7cb602b9
...
@@ -22,19 +22,19 @@ pipeline {
...
@@ -22,19 +22,19 @@ pipeline {
stage
(
'deploy'
)
{
stage
(
'deploy'
)
{
steps
{
steps
{
sh
'sed -i "s#registry/pybbs#registry/pybbs:${GIT_COMMIT_MSG}#g" docker-compose.yml'
sh
'sed -i "s#registry/pybbs#registry/pybbs:${GIT_COMMIT_MSG}#g" docker-compose.yml'
}
steps
{
sshPublisher
(
sshPublisher
(
publishers:
[
publishers:
[
sshPublisherDesc
(
sshPublisherDesc
(
configName:
'nginx'
,
configName:
'nginx'
,
transfers:
[
sshTransfer
(
transfers:
[
sshTransfer
(
cleanRemote:
false
,
cleanRemote:
false
,
execCommand:
'cd /app && docker-compose down &&docker-compose up -d'
,
execCommand:
'cd /app && docker-compose down &&docker-compose up -d'
,
remoteDirectory:
'/app'
,
remoteDirectory:
'/app'
,
removePrefix:
''
,
removePrefix:
''
,
sourceFiles:
'docker-compose.yml'
sourceFiles:
'docker-compose.yml'
)],
)
],
verbose:
true
verbose:
true
)
)
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment