if [ "$ENVIRONMENT" == 'JAVALAND_PROD_A' ]; then
SERVER="54.93.219.237"
elif [ "$ENVIRONMENT" == 'JAVALAND_STAGING' ]; then
SERVER="52.28.10.112"
elif [ "$ENVIRONMENT" == 'JAVALAND_TEST' ]; then
SERVER="52.28.14.105"
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project monitoring: Failed to deploy artifacts: Could not transfer artifact de.codecentric:monitoring:jar:DEV-1 from/to central (http://54.93.92.96:8081/artifactory/libs-release-local): Connect to 54.93.92.96:8081 [/54.93.92.96] failed: Connection timed out -> [Help 1]
[ERROR]
app/scripts/deploy.sh deploy script seems to have hardcoded server details
REPOSITORY=http://54.93.92.96:8081/artifactory/simple/libs-release-local
if [ "$ENVIRONMENT" == 'JAVALAND_PROD_A' ]; then SERVER="54.93.219.237" elif [ "$ENVIRONMENT" == 'JAVALAND_STAGING' ]; then SERVER="52.28.10.112" elif [ "$ENVIRONMENT" == 'JAVALAND_TEST' ]; then SERVER="52.28.14.105"
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project monitoring: Failed to deploy artifacts: Could not transfer artifact de.codecentric:monitoring:jar:DEV-1 from/to central (http://54.93.92.96:8081/artifactory/libs-release-local): Connect to 54.93.92.96:8081 [/54.93.92.96] failed: Connection timed out -> [Help 1] [ERROR]
Should have taken REPOSITORY_URL : http://nexus:8081/nexus/content/repositories/releases/ from jenkins..on Job - Project conference-app-monitoring-1-ci