Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CICDTest
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
Perwaiz Ali
CICDTest
Commits
7cf21c91
Commit
7cf21c91
authored
Aug 31, 2022
by
Perwaiz Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change in .git-yml
parent
8752b589
Pipeline
#2205
passed with stages
in 1 minute and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
.gitlab-ci - Copy_Back_UP.yml
.gitlab-ci - Copy_Back_UP.yml
+32
-1
ControllerTest.java
...main/java/com/example/cicd/controller/ControllerTest.java
+6
-0
No files found.
.gitlab-ci - Copy_Back_UP.yml
View file @
7cf21c91
...
@@ -87,4 +87,35 @@ deploy:
...
@@ -87,4 +87,35 @@ deploy:
entrypoint
:
[
"
"
]
entrypoint
:
[
"
"
]
script
:
script
:
-
aws configure set region ap-south-1
-
aws configure set region ap-south-1
-
aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar
-
aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar
\ No newline at end of file
----------------------------------------------------------------------------------------------------------
Working structure
stages
:
-
build
-
test
-
deploy
maven-build
:
tags
:
-
docker
image
:
maven:3-jdk-11
stage
:
build
script
:
"
mvn
package
-B"
artifacts
:
paths
:
-
target/CICDTesting-0.0.1-SNAPSHOT.jar
deploy
:
tags
:
-
docker
stage
:
deploy
image
:
name
:
banst/awscli
entrypoint
:
[
"
"
]
script
:
-
aws configure set region ap-south-1
-
aws s3 cp ./target/CICDTesting-0.0.1-SNAPSHOT.jar s3://$S3_BUCKET/CICDTesting-0.0.1-SNAPSHOT.jar
\ No newline at end of file
src/main/java/com/example/cicd/controller/ControllerTest.java
View file @
7cf21c91
...
@@ -16,6 +16,12 @@ public class ControllerTest {
...
@@ -16,6 +16,12 @@ public class ControllerTest {
return
"Hello CI/CD Test"
;
return
"Hello CI/CD Test"
;
}
}
@RequestMapping
(
"/test-2"
)
public
String
testMessage2
()
{
return
"Hello CI/CD Test-2"
;
}
@RequestMapping
(
"/AllUsers"
)
@RequestMapping
(
"/AllUsers"
)
...
...
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