Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dymas
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
dymas
Commits
85bd463c
Commit
85bd463c
authored
Dec 11, 2019
by
周健君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
5e96ffe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
Jenkinsfile
Jenkinsfile
+23
-1
No files found.
Jenkinsfile
View file @
85bd463c
...
...
@@ -32,8 +32,20 @@ pipeline {
dingNotify
"before"
}
}
stage
(
'Check Code'
)
{
//when { branch 'test' }
steps
{
script
{
currentBuild
.
displayName
=
"Check-Code"
checkCode
"3.6"
}
}
}
stage
(
'Build'
)
{
steps
{
script
{
currentBuild
.
displayName
=
"Build-Image"
}
sh
"docker build . ${params.cache} -f ./Dockerfile -t $IMAGE"
sh
"docker push $IMAGE"
}
...
...
@@ -43,7 +55,16 @@ pipeline {
post
{
always
{
dingNotify
"after"
,
"${currentBuild.currentResult}"
script
{
def
stage
=
"${currentBuild.displayName}"
if
(
stage
==
"Check-Code"
&&
fileExists
(
"./flake.output.txt"
))
{
def
description
=
readFile
(
"./flake.output.txt"
)
dingNotify
"after"
,
"${currentBuild.currentResult}"
,
"${description}"
}
else
{
dingNotify
"after"
,
"${currentBuild.currentResult}"
}
}
recordIssues
enabledForFailure:
true
,
tools:
[
flake8
()]
}
}
}
\ No newline at end of file
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