Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-cicd-task
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
Ishtiaq Ahmed
nisum-cicd-task
Commits
270c65b5
Commit
270c65b5
authored
Nov 07, 2022
by
Ishtiaq Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete script.groovy
parent
b3c2bbd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
script.groovy
script.groovy
+0
-19
No files found.
script.groovy
deleted
100644 → 0
View file @
b3c2bbd1
def
buildJar
()
{
echo
"building the application..."
sh
'mvn package'
}
def
buildImage
()
{
echo
"building the docker image..."
withCredentials
([
usernamePassword
(
credentialsId:
'docker-hub-repo'
,
passwordVariable:
'PASS'
,
usernameVariable:
'USER'
)])
{
sh
'docker build -t nanajanashia/demo-app:jma-2.0 .'
sh
"echo $PASS | docker login -u $USER --password-stdin"
sh
'docker push nanajanashia/demo-app:jma-2.0'
}
}
def
deployApp
()
{
echo
'deploying the application...'
}
return
this
\ 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