List of commits:
Subject Hash Author Date (UTC)
HTML publisher in pipeline cecfcf75fc525c0205340e28d009184416dc812a mandas04 2019-01-22 06:54:21
udpate Jenkinsfile 754c6fe2076146e616b6f3ad96efb951af628c0f mandas04 2019-01-20 07:35:37
refactor Dockerfile a5f68b671de52cfbbcea8f264bd45c8959380eaf mandas04 2019-01-20 07:33:04
added build number to docker image 742d1ad36fe73477c3fcd0f529c7a95cf47555e7 mandas04 2019-01-20 07:13:17
Added docker registry support after build 3a0715f7a5e931697b29ec0f58c3b96d5c53c1df mandas04 2019-01-20 06:50:32
Adding graddle wrapper jar bd5faf38820a602ad04c4586309e27ef8850e19a mandas04 2019-01-17 16:18:26
Jenkins initial pipeline 99ad201c0f501cc15a6c504c888b368030f31d06 mandas04 2019-01-17 16:08:19
Moving test codes to correct directory 1014ba1f252fbc27c9b813f9c575111459fc29e6 mandas04 2019-01-16 16:24:22
Add test cases with 42% coverage e848ce030e48c1773e830afeacb6a1f6888bf6f3 mandas04 2019-01-16 16:21:50
Base line code with DB schema and dummy data for test 23e0dd82c790bc0575222c078becb51182b5c0f0 mandas04 2019-01-16 16:19:45
Project setup with gradle nature - Necessary dependencies are added to build - JaCoCo framework for Code Coverage - Rest Assured framework for integration test 5a745d5d5a97a015ad1b6b1b1f65b8706eecfc35 mandas04 2019-01-16 15:28:31
Initial commit 091930d63d19505aecbfa21c0b6ff27746431bac Pai, Ashwin 2019-01-09 12:37:40
Commit cecfcf75fc525c0205340e28d009184416dc812a - HTML publisher in pipeline
Author: mandas04
Author date (UTC): 2019-01-22 06:54
Committer name: mandas04
Committer date (UTC): 2019-01-22 07:13
Parent(s): 754c6fe2076146e616b6f3ad96efb951af628c0f
Signer:
Signing key:
Signing status: N
Tree: c9568a924722295182e66762e062aecebd310581
File Lines added Lines deleted
Jenkinsfile 14 26
File Jenkinsfile changed (mode: 100644) (index 47c2e89..3167064)
... ... pipeline{
11 11
12 12 stage("Compile") { stage("Compile") {
13 13 steps { steps {
14 //dir('Deployment Audit') {
15 sh "sh ./gradlew compileJava"
16 //}
14 sh "sh ./gradlew compileJava"
17 15 } }
18 16 } }
17
19 18 stage("Unit test") { stage("Unit test") {
20 19 steps { steps {
21 //dir('Deployment Audit') {
22 sh "sh ./gradlew test"
23 //}
20 sh "sh ./gradlew test"
21 publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'build/reports/tests/test', reportFiles: 'index.html', reportName: 'Unit Test Reprot', reportTitles: 'Unit tests by Junit'])
24 22 } }
25 23 } }
26 24
27 25 stage("Package") { stage("Package") {
28 26 steps { steps {
29 //dir('Deployment Audit') {
30 sh "sh ./gradlew build"
31 //}
27 sh "sh ./gradlew build"
32 28 } }
33 29 } }
34 30
35 31 stage('DB Setup') { stage('DB Setup') {
36 32 steps{ steps{
37 //dir('Deployment Audit') {
38 sh "sh ./gradlew update"
39 //}
33 sh "sh ./gradlew update"
40 34 } }
41 35 } }
42 36
43 37 stage('Test Coverage') { stage('Test Coverage') {
44 38 steps{ steps{
45 echo 'Test converage verification'
46 //dir('Deployment Audit') {
47 sh "sh ./gradlew jacocoTestReport"
48 //}
39 sh "sh ./gradlew jacocoTestReport"
40 publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'build/reports/jacoco/test/html', reportFiles: 'index.html', reportName: 'Code Coverage Reprot', reportTitles: 'Code coverage by JaCoCo'])
49 41 } }
50 42 } }
51 43
52 44 stage("Docker build") { stage("Docker build") {
53 45 steps { steps {
54 //dir('Deployment Audit') {
55 sh "docker build -t registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:latest ."
56 sh "docker build -t registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:${BUILD_NUMBER} ."
57 //}
46 sh "docker build -t registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:latest ."
47 sh "docker build -t registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:${BUILD_NUMBER} ."
58 48 } }
59 49 } }
60 50
61 51 stage("Docker publish") { stage("Docker publish") {
62 52 steps { steps {
63 //dir('Deployment Audit') {
64 withDockerRegistry([ credentialsId: "docker-registry", url: "https://registry.gitlab.kfplc.com" ]) {
65 sh "docker push registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:latest"
66 sh "docker push registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:${BUILD_NUMBER}"
67 }
68 //}
53 withDockerRegistry([ credentialsId: "docker-registry", url: "https://registry.gitlab.kfplc.com" ]) {
54 sh "docker push registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:latest"
55 sh "docker push registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api:${BUILD_NUMBER}"
56 }
69 57 } }
70 58 } }
71 59
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/Sumangal-IN/deployment-audit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/Sumangal-IN/deployment-audit

Clone this repository using git:
git clone git://git.rocketgit.com/user/Sumangal-IN/deployment-audit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main