in src/com/epam/digital/data/platform/pipelines/stages/impl/general/GeoserverPublisher.groovy [46:70]
private void runGeoserverPublisher() {
context.logger.info("Publishing geoserver configuration")
context.script.sh(script: "cp ${context.registry.SETTINGS_FILE} /home/jenkins/geoserver-publisher")
try {
context.script.sh(script: "java -jar " +
"-DSTORE_DB_PASSWORD=${context.postgres.geoServerPublisherPass} " +
"-DSTORE_DB_USER=${context.postgres.geoServerPublisherUser} " +
"-DDB_SCHEMA=registry " +
"-DDB_HOST=${context.postgres.OPERATIONAL_MASTER_URL} " +
"-DDB_PORT=${context.postgres.OPERATIONAL_MASTER_PORT} " +
"-DDB_NAME=registry " +
"-DGEOSERVER_LOGIN=admin " +
"-DGEOSERVER_PASSWORD=${context.platform.getSecretValue("geo-server-admin-secret", "password")} " +
"-DGEOSERVER_PUBLISHER_DB_PASSWORD=\'${context.postgres.operational_pg_password}\' " +
"-DGEOSERVER_PUBLISHER_DB_USER=${context.postgres.operational_pg_user} " +
"-DGEOSERVER_URL=http://officer-portal-geo-server:8080 " +
"${GEOSERVER_PUBLISHER_JAR} " +
"--settings-file=${context.registry.SETTINGS_FILE} " +
"${context.logLevel == "DEBUG" ? "1>&2" : ""}")
context.logger.info("Geoserver configuration has been published")
}
catch (any) {
context.script.error("Geoserver configuration publishing failed")
}
}