Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins-learning-project
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
Nasir Hussain
jenkins-learning-project
Commits
07e5b5b2
Unverified
Commit
07e5b5b2
authored
Feb 02, 2021
by
nasirhm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎉
👷
Initalized CI
Signed-off-by:
nasirhm
<
nasirhussainm14@gmail.com
>
parent
866bdc86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Jenkinsfile
Jenkinsfile
+16
-0
No files found.
Jenkinsfile
0 → 100644
View file @
07e5b5b2
pipeline
{
agent
any
stages
{
stage
(
'Docker Build and Tag'
)
{
steps
{
sh
'docker build -t my-application:latest .'
sh
'docker tag my-application my-application:$BUILD_NUMBER'
}
}
stage
(
'Run Docker Container on Jenkins Agent'
)
{
steps
{
sh
'docker run -d -p 80:80 my-application'
}
}
}
}
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