List of commits:
Subject Hash Author Date (UTC)
Setup liquibase for dev and prod separately 49dc85a8404833ebb7193a396a1ede16dafa32e5 mandas04 2019-01-30 05:44:31
Jenkins secret variable udpate 23ef9bc048d411e15da152aba1d87616bc7c0b97 mandas04 2019-01-30 05:03:31
User service reimplented as POST and DELETE method 8e08f92e52927c03152c7eca01b0549eb6608bf3 mandas04 2019-01-30 05:00:07
Adding wait for 2 mins before sanity test ebec65b19a1bd1cb36f0a8ac03d22c8893bf9123 mandas04 2019-01-29 15:42:27
Adding acceptance test criteria b38c915f4f14f13a73b3ae3945f791342ea31099 mandas04 2019-01-29 12:55:27
Fixed ordering of environments in report a76fd02548ee2550828c1084b233e2bdb5021312 mandas04 2019-01-29 11:39:26
Logger integration 27355b907d8c2e4d3a802bf596157807f723e240 mandas04 2019-01-29 09:01:37
Application constant update 43899921f01328d6c94363c6a393aa34c355acfd mandas04 2019-01-29 05:08:06
disable IIB api access b0b3ebfc82b85bcfe74cc575e70d816ccfcb13cc mandas04 2019-01-28 16:01:16
Adding custom exception class 7008923fecce4ddea63817a2ca28503c9ca88ebf mandas04 2019-01-28 13:56:58
Adding custom exception class 343917b1fb344128a0f9d24aba7067e2141467f5 mandas04 2019-01-28 13:56:56
RestTemplate addition with SSL support 22ff2e8c20c6a971100f0065dd010ef1e98b03de mandas04 2019-01-28 09:04:14
Refactor Jenkinsfile 8f034841202072fa31fc6fa43c6fb25949b8a815 mandas04 2019-01-27 14:40:17
Adding unit test cases 18fafbcc7ee0395422ab6a558483f5c828250841 mandas04 2019-01-26 19:25:11
Change in report UTF8 character replaced by \uxxx Report rows are sorted with ambiguous applications are placed at top fe3ed81569cf83faf59f8463b2e78a7c028dccd0 mandas04 2019-01-26 17:02:50
Adding constants as string in Swagger Config 905bc88787499ed8ed319fd7dfa246c1d49e06e1 mandas04 2019-01-26 15:14:53
Refactor packages 11f8bee99fad844c80f4a0d375fa416915694c12 mandas04 2019-01-26 15:05:50
Refactor Jenkinsfile and build.gradle fe1b806100e4a90f038c781d5a0ca1c3de99a3cf mandas04 2019-01-26 12:52:39
Get git commit of the current build 5b08ed72521e1df48c8d528c7dd0c9164c731117 mandas04 2019-01-25 09:27:24
Jenkinsfile docker run parameter change d2d996261f214bbe0b2985051519b59dc3ba3e07 mandas04 2019-01-24 20:47:57
Commit 49dc85a8404833ebb7193a396a1ede16dafa32e5 - Setup liquibase for dev and prod separately
Author: mandas04
Author date (UTC): 2019-01-30 05:44
Committer name: mandas04
Committer date (UTC): 2019-01-30 06:09
Parent(s): 23ef9bc048d411e15da152aba1d87616bc7c0b97
Signer:
Signing key:
Signing status: N
Tree: 79f35c185f2babf9d3c8b0f239a62b8ac993acb3
File Lines added Lines deleted
Jenkinsfile 17 1
build.gradle 59 42
File Jenkinsfile changed (mode: 100644) (index e43bcd9..2db5e08)
... ... pipeline{
25 25
26 26 stage('Setup dev DB instance') { stage('Setup dev DB instance') {
27 27 steps{ steps{
28 sh "sh ./gradlew update"
28 sh "sh ./gradlew dev_db update"
29 29 } }
30 30 } }
31 31
 
... ... pipeline{
87 87 } }
88 88 } }
89 89 } }
90
91 stage('Setup dprod DB instance') {
92 steps{
93 sh "sh ./gradlew prod_db update"
94 }
95 }
96
97 stage("Deploy in dev") {
98 steps {
99 withCredentials([
100 usernamePassword(credentialsId: 'srv-gitlab', passwordVariable: 'docker_registry_password', usernameVariable: 'docker_registry_username')
101 ]){
102 sshPublisher(publishers: [sshPublisherDesc(configName: 'INTAPPS_PROD', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'docker ps -aq|xargs -I {} docker stop {}; docker ps -aq|xargs -I {} docker rm {}; docker login registry.gitlab.kfplc.com -u $docker_registry_username -p $docker_registry_password; docker pull registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api; docker run -d -p 9090:9090 registry.gitlab.kfplc.com/integration_automation/int-deployment-audit-api', execTimeout: 1200000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/home/cloud-user', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
103 }
104 }
105 }
90 106 } }
91 107 } }
File build.gradle changed (mode: 100644) (index 8dcb1d5..c7f67b6)
... ... buildscript {
23 23 classpath "org.liquibase:liquibase-gradle-plugin:1.1.1" classpath "org.liquibase:liquibase-gradle-plugin:1.1.1"
24 24 } }
25 25 } }
26 /******** Load the properties file ********/
27 def devProps = new Properties()
28 file("src/main/resources/application-dev.properties").withInputStream {
29 stream -> devProps.load(stream)
30 }
31
32 def prodProps = new Properties()
33 file("src/main/resources/application-prod.properties").withInputStream {
34 stream -> devProps.load(stream)
35 }
36
37 /******** Get Key and IV from environment for password decryption ********/
38 def ENV = System.getenv()
39 def codecKey = ENV['codecKey']
40 def codecIV = ENV['codecIV']
41
42 /******** Setup password decryptor by key and IV available in system environment ********/
43 Cipher deCipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
44 deCipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(new DESKeySpec(codecKey.getBytes()).getKey(), "DES"), new IvParameterSpec(codecIV.getBytes()));
45
46 /******** LIQUIBASE ********/
47 apply plugin: 'liquibase'
48
49 liquibase {
50 def dbPassword = new String(deCipher.doFinal(devProps.getProperty('spring.datasource.password').decodeBase64()));
51 activities {
52 main {
53 url devProps.getProperty('spring.datasource.url')
54 username devProps.getProperty('spring.datasource.username')
55 password dbPassword
56 changeLogFile new File(rootProject.projectDir,devProps.getProperty('liquibase.change.log.file'))
57 }
58 }
59 }
60
61 /******** JACOCO ********/
62 apply plugin: 'jacoco'
63
64 jacoco {
65 toolVersion = "0.8.2"
66 reportsDir = file("$buildDir/reports/jacoco")
67 }
68 26
69 27 apply plugin: 'java' apply plugin: 'java'
70 28 compileJava.options.encoding = 'UTF-8' compileJava.options.encoding = 'UTF-8'
 
... ... dependencies {
105 63 testCompile ('io.rest-assured:spring-web-test-client:3.3.0') testCompile ('io.rest-assured:spring-web-test-client:3.3.0')
106 64 testCompile('io.rest-assured:rest-assured:3.1.0') testCompile('io.rest-assured:rest-assured:3.1.0')
107 65 } }
66
67 /******** JACOCO ********/
68 apply plugin: 'jacoco'
69
70 jacoco {
71 toolVersion = "0.8.2"
72 reportsDir = file("$buildDir/reports/jacoco")
73 }
74
75
76 /******** Load the properties file ********/
77 def devProps = new Properties()
78 file("src/main/resources/application-dev.properties").withInputStream {
79 stream -> devProps.load(stream)
80 }
81
82 def prodProps = new Properties()
83 file("src/main/resources/application-prod.properties").withInputStream {
84 stream -> devProps.load(stream)
85 }
86
87 /******** Get Key and IV from environment for password decryption ********/
88 def ENV = System.getenv()
89 def codecKey = ENV['codecKey']
90 def codecIV = ENV['codecIV']
91
92 /******** Setup password decryptor by key and IV available in system environment ********/
93 Cipher deCipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
94 deCipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(new DESKeySpec(codecKey.getBytes()).getKey(), "DES"), new IvParameterSpec(codecIV.getBytes()));
95
96 /******** LIQUIBASE ********/
97 apply plugin: 'liquibase'
98 task dev_db {
99 liquibase {
100 def dbPassword = new String(deCipher.doFinal(devProps.getProperty('spring.datasource.password').decodeBase64()));
101 activities {
102 main {
103 url devProps.getProperty('spring.datasource.url')
104 username devProps.getProperty('spring.datasource.username')
105 password dbPassword
106 changeLogFile new File(rootProject.projectDir,devProps.getProperty('liquibase.change.log.file'))
107 }
108 }
109 }
110 }
111
112 task prod_db {
113 liquibase {
114 def dbPassword = new String(deCipher.doFinal(devProps.getProperty('spring.datasource.password').decodeBase64()));
115 activities {
116 main {
117 url devProps.getProperty('spring.datasource.url')
118 username devProps.getProperty('spring.datasource.username')
119 password dbPassword
120 changeLogFile new File(rootProject.projectDir,devProps.getProperty('liquibase.change.log.file'))
121 }
122 }
123 }
124 }
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