Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
BOURLIER Antoine
my-project1
Commits
07b9af68
Commit
07b9af68
authored
3 years ago
by
BOURLIER Antoine
Browse files
Options
Download
Email Patches
Plain Diff
jenkinsfile
parent
fcd88f6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
Jenkinsfile
Jenkinsfile
+29
-0
No files found.
Jenkinsfile
0 → 100644
View file @
07b9af68
pipeline
{
agent
any
stages
{
stage
(
'Build'
)
{
steps
{
sh
"""
docker build -t 'tncy2021-abo/snake-basket' . > build.out
cat build.out
"""
}
}
stage
(
'Test'
)
{
steps
{
sh
"""
mkdir -p app-log
docker run --rm -d -v app-log:/var/log/snake-basket: --name snake-basket tncy2021abo/snake-basket
echo "Container started"
docker stop snake-basket
"""
}
}
stage
(
'Deploy'
)
{
steps
{
sh
'echo DEPLOY'
}
}
}
}
This diff is collapsed.
Click to expand it.
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