Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
NotificationSVC
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
abdullh.alsoleman
NotificationSVC
Commits
828174e2
Commit
828174e2
authored
Jul 21, 2024
by
Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docker and jenkins files
parent
66b4dfc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
Dockerfile
Dockerfile
+7
-0
Jenkinsfile
Jenkinsfile
+36
-0
notificationsvc-0.0.1-SNAPSHOT.jar
jar/notificationsvc-0.0.1-SNAPSHOT.jar
+0
-0
No files found.
Dockerfile
0 → 100644
View file @
828174e2
FROM
openjdk:17-jdk
WORKDIR
/app
COPY
jar/notificationsvc-0.0.1-SNAPSHOT.jar /app/notificationsvc-0.0.1-SNAPSHOT.jar
CMD
["java", "-jar", "notificationsvc-0.0.1-SNAPSHOT.jar"]
\ No newline at end of file
Jenkinsfile
0 → 100644
View file @
828174e2
pipeline
{
agent
{
label
'localhost_Agent'
}
tools
{
jdk
'Java17'
maven
'Maven3'
}
environment
{
APP_NAME
=
"jobseekersvc"
RELEASE
=
"1.0.0"
DOCKER_REGISTRY_URL
=
"http://172.29.3.41:5000"
IMAGE_NAME
=
"172.29.3.41:5000/${APP_NAME}:${RELEASE}.${BUILD_NUMBER}"
}
stages
{
stage
(
'Cleanup Workspace'
)
{
steps
{
cleanWs
()
}
}
stage
(
'Checkout from SCM'
)
{
steps
{
git
branch:
'master'
,
credentialsId:
'gitLab'
,
url:
'https://git.hiast.edu.sy/abdullh.alsoleman/notificationsvc.git'
}
}
stage
(
"Build & Push Docker Image"
)
{
steps
{
script
{
def
dockerImage
=
docker
.
build
(
"${IMAGE_NAME}"
)
dockerImage
.
push
()
}
}
}
}
}
jar/notificationsvc-0.0.1-SNAPSHOT.jar
0 → 100644
View file @
828174e2
File added
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