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
a2acc512
Commit
a2acc512
authored
Nov 07, 2022
by
Ishtiaq Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
8059fcf8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Jenkinsfile
Jenkinsfile
+2
-8
No files found.
Jenkinsfile
View file @
a2acc512
...
...
@@ -36,17 +36,11 @@
steps
{
script
{
echo
"building application"
withCredentials
([
usernamePassword
(
credentialsId:
'
docker-hub-creds
'
,
passwordVariable:
'PASS'
,
usernameVariable:
'USER'
)])
{
withCredentials
([
usernamePassword
(
credentialsId:
'
gitlab-ishtiaq
'
,
passwordVariable:
'PASS'
,
usernameVariable:
'USER'
)])
{
sh
"sed -i 's/VERSION/${env.BUILD_ID}/g' docker-build.sh"
sh
'chmod 777 docker-build.sh'
sh
'./docker-build.sh'
// sh 'docker build -t my-app:1.0 .'
// sh 'docker tag my-app:1.0 mshussain/my-app:1.0'
// sh 'echo $PASS | docker login -u $USER --password-stdin'
// sh 'docker push mshussain/my-app:1.0'
}
}
}
...
...
@@ -59,7 +53,7 @@
projectId:
env
.
PROJECT_ID
,
\
clusterName:
env
.
CLUSTER_NAME
,
\
location:
env
.
LOCATION
,
\
manifestPattern:
'dep.yaml'
,
\
manifestPattern:
'dep
-nisum-cicd
.yaml'
,
\
credentialsId:
env
.
CREDENTIALS_ID
,
\
verifyDeployments:
true
])
}
...
...
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