Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
Share-Lib-Pipeline
Project
Project
Details
Activity
Releases
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
Ndoumbe
Share-Lib-Pipeline
Commits
459c3e57
Commit
459c3e57
authored
Dec 16, 2022
by
Ndoumbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update odoodefaultpipeline.groovy
parent
76ca802f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
1 deletion
+68
-1
odoodefaultpipeline.groovy
vars/odoodefaultpipeline.groovy
+68
-1
No files found.
vars/odoodefaultpipeline.groovy
View file @
459c3e57
h
\ No newline at end of file
def
call
(
body
)
{
def
pipelineParams
=
[:]
body
.
resolveStrategy
=
Closure
.
DELEGATE_FIRST
body
.
delegate
=
pipelineParams
body
()
pipeline
{
agent
any
environment
{
def
shortCommit
=
sh
(
returnStdout:
true
,
script:
"git log -n 1 --pretty=format:'%h'"
).
trim
()
def
GIT_DEVOPS_PWD
=
"${pipelineParams.GIT_DEVOPS_PWD}"
def
GIT_DEVOPS_USER
=
"${pipelineParams.GIT_DEVOPS_USER}"
def
APP_STACK
=
"${pipelineParams.APP_STACK}"
def
MAVEN_PROFILE
=
"${pipelineParams.MAVEN_PROFILE}"
def
APP_PLATFORM
=
"${pipelineParams.APP_PLATFORM}"
def
APP_ID
=
"${pipelineParams.APP_ID}"
def
APP_NAME
=
"${pipelineParams.appName}"
def
NO_VALUES_FILE
=
"${pipelineParams.NO_VALUES_FILE}"
SLACK_CHANNEL_NOTIF
=
"${pipelineParams.slackChannelNotification}"
}
stages
{
stage
(
'build start'
)
{
steps
{
script
{
slackSend
(
channel:
SLACK_CHANNEL_NOTIF
,
color:
'#45b6fe'
,
message:
"Build Started: ${currentBuild.fullDisplayName}"
)
}
}
}
stage
(
'checkout'
)
{
steps
{
checkout
scm
}
}
stage
(
'Build'
)
{
steps
{
echo
'Building..'
}
}
stage
(
'Test'
)
{
steps
{
echo
'Testing..'
}
}
stage
(
'Build image'
)
{
steps
{
sh
"docker build -t baamtu/docker-demo:master ."
}
}
stage
(
'Push image'
)
{
steps
{
sh
"docker push baamtu/docker-demo:master"
}
}
}
}
\ 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