Skip to content
Snippets Groups Projects
Commit eebf612c authored by Lene Wasskog's avatar Lene Wasskog
Browse files

chore: Redirect cli output to log file

parent 8e043c80
No related branches found
No related tags found
No related merge requests found
Pipeline #2503 passed
...@@ -87,7 +87,7 @@ deploy-to-staging: ...@@ -87,7 +87,7 @@ deploy-to-staging:
fi fi
# Deploy war file using JBoss CLI and credentials given in CI/CD variables # Deploy war file using JBoss CLI and credentials given in CI/CD variables
- echo "Deploy $WAR_FILE using JBoss CLI" - echo "Deploy $WAR_FILE using JBoss CLI"
- ssh $SERVER_USER@$SERVER_IP "/disks/data01/wildfly/wildfly-25.0.1.Final/bin/jboss-cli.sh --user=$WILDFLY_ADMIN_USERNAME --password=$WILDFLY_ADMIN_PASSWORD --connect --file=$TMP_PATH/deploy.cli" - ssh $SERVER_USER@$SERVER_IP "/disks/data01/wildfly/wildfly-25.0.1.Final/bin/jboss-cli.sh --user=$WILDFLY_ADMIN_USERNAME --password=$WILDFLY_ADMIN_PASSWORD --connect --file=$TMP_PATH/deploy.cli" > deployment.log 2>&1
# Restart should not be necessary # Restart should not be necessary
- echo "Restart WildFly" - echo "Restart WildFly"
- ssh $SERVER_USER@$SERVER_IP "sudo systemctl restart wildfly" - ssh $SERVER_USER@$SERVER_IP "sudo systemctl restart wildfly"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment