Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app-code-backend
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
1
Merge Requests
1
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
POC
app-code-backend
Commits
4d7b1935
Commit
4d7b1935
authored
Mar 12, 2022
by
Asad ullah khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pieplie code
parent
40e7fd19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
Jenkinsfile
Jenkinsfile
+25
-6
No files found.
Jenkinsfile
View file @
4d7b1935
updateGitlabCommitStatus
name:
'Jenkins'
,
state:
'pending'
pipeline
{
environment
{
imageRepo
=
"asadullahkhan/poc-backend"
...
...
@@ -9,6 +10,7 @@ pipeline {
stage
(
'Cloning Git'
)
{
steps
{
git
([
url:
'https://github.com/AsadUkh/app-code-backend.git'
,
branch:
'master'
])
updateGitlabCommitStatus
name:
"Jenkins"
,
state:
"running"
}
}
stage
(
'Build application'
)
{
...
...
@@ -31,12 +33,29 @@ pipeline {
}
}
}
// stage('Remove Unused docker image') {
// steps{
// sh "docker rmi $imagename:$BUILD_NUMBER"
// sh "docker rmi $imagename:latest"
// }
// }
}
post
{
always
{
script
{
try
{
echo
"Helloworl integration with gitla"
}
catch
(
Exception
ex
)
{
echo
"Unable to get pod name, may be no pods were created. Check previous steps for more logs. This is NOT a build error."
}
// archiveArtifacts artifacts: 'application.log'
}
}
success
{
updateGitlabCommitStatus
name:
"Jenkins"
,
state:
"success"
}
failure
{
updateGitlabCommitStatus
name:
"Jenkins"
,
state:
"failed"
}
unstable
{
updateGitlabCommitStatus
name:
"Jenkins"
,
state:
"failed"
}
}
}
\ 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