Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
synergy
o3skim
Commits
2fee169b
Commit
2fee169b
authored
Aug 18, 2020
by
BorjaEst
Browse files
Merge branch 'python_dev' into python
parents
36666431
235ead49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
2fee169b
pipeline
{
agent
{
dockerfile
true
}
environment
{
registry
=
"boressan/cicd"
registryCredential
=
'dockerhub_id'
}
agent
any
stages
{
stage
(
'Image build'
)
{
steps
{
echo
'====================building image===================================='
script
{
customImage
=
docker
.
build
(
registry
)
}
}
}
stage
(
'Unit testing'
)
{
steps
{
echo
'====================executing unittest================================'
sh
'tox'
script
{
customImage
.
inside
(
"--entrypoint=''"
)
{
sh
'tox'
}
}
}
}
stage
(
'Docker-hub upload'
)
{
steps
{
echo
'====================uploading docker-hub=============================='
script
{
docker
.
withRegistry
(
''
,
registryCredential
)
{
customImage
.
push
()
}
}
}
}
}
...
...
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