diff --git a/Jenkinsfile-1 b/Jenkinsfile-1
index e5e6301..d5c2c6b 100644
--- a/Jenkinsfile-1
+++ b/Jenkinsfile-1
@@ -1,7 +1,5 @@
pipeline {
- agent {
- docker { image 'liquibase/liquibase:4.4.2' }
- }
+ agent any
stages {
stage('Test') {
steps {
@@ -9,4 +7,4 @@ pipeline {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Jenkinsfile-2 b/Jenkinsfile-2
index d89a3af..252e9c5 100644
--- a/Jenkinsfile-2
+++ b/Jenkinsfile-2
@@ -3,17 +3,17 @@ pipeline {
docker { image 'liquibase/liquibase:4.4.2' }
}
environment {
- MARIADB_CREDS=credentials('mariadb-credentials')
+ MARIADB_CREDS=credentials('mysql-db')
}
stages {
stage('Status') {
steps {
- sh 'liquibase status --url="jdbc:mysql://192.168.32.11:3306/my_app" --changeLogFile=my_app-wrapper.xml --username=$MARIADB_CREDS_USR --password=$MARIADB_CREDS_PSW'
+ sh 'liquibase status --url="jdbc:mysql://54.179.224.147:3306/my_app?autoReconnect=true&useSSL=false" --changeLogFile=my_app-wrapper.xml --username=$MARIADB_CREDS_USR --password=$MARIADB_CREDS_PSW'
}
}
stage('Update') {
steps {
- sh 'liquibase update --url="jdbc:mysql://192.168.32.11:3306/my_app" --changeLogFile=my_app-wrapper.xml --username=$MARIADB_CREDS_USR --password=$MARIADB_CREDS_PSW'
+ sh 'liquibase update --url="jdbc:mysql://54.179.224.147:3306/my_app?autoReconnect=true&useSSL=false" --changeLogFile=my_app-wrapper.xml --username=$MARIADB_CREDS_USR --password=$MARIADB_CREDS_PSW'
}
}
}
@@ -22,4 +22,4 @@ pipeline {
cleanWs()
}
}
-}
\ No newline at end of file
+}
diff --git a/my_app-wrapper.xml b/my_app-wrapper.xml
index f0194e9..b5f462a 100644
--- a/my_app-wrapper.xml
+++ b/my_app-wrapper.xml
@@ -12,4 +12,4 @@
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
-
\ No newline at end of file
+