Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSCore
Commits
fadfce2b
Commit
fadfce2b
authored
1 year ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
chore: Remove folder fram WAR_FILE variable
parent
b05a6b27
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!7
Gnuaffero
Pipeline
#2492
failed
1 year ago
Stage: build
Stage: test
Stage: deploy
Stage: upload
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
with
3 additions
and
3 deletions
.gitlab-ci.yml
+
3
−
3
View file @
fadfce2b
...
@@ -57,8 +57,8 @@ deploy-to-staging:
...
@@ -57,8 +57,8 @@ deploy-to-staging:
-
chmod 600 ~/.ssh/id_dsa
-
chmod 600 ~/.ssh/id_dsa
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-
"
./mvnw
$MAVEN_POM_WITH_MODELS
$MAVEN_CLI_OPTS
$MAVEN_OPTS
package
-DskipTests"
-
"
./mvnw
$MAVEN_POM_WITH_MODELS
$MAVEN_CLI_OPTS
$MAVEN_OPTS
package
-DskipTests"
-
WAR_FILE=$(find target -maxdepth 1 -type f -name "*.war" | sort -n | tail -1)
-
WAR_FILE=$(find target -maxdepth 1 -type f -name "*.war" | sort -n | tail -1
| xargs basename
)
-
if [ -z "$WAR_FILE" ]; then echo "No
WAR
file
s
found in target directory"; exit 1; fi
-
if [ -z "$WAR_FILE" ]; then echo "No
war
file found in target directory"; exit 1; fi
-
echo "Create temporary directory on the server"
-
echo "Create temporary directory on the server"
-
ssh $SERVER_USER@$SERVER_IP "mkdir -p $TMP_PATH"
-
ssh $SERVER_USER@$SERVER_IP "mkdir -p $TMP_PATH"
-
echo "Archive currently deployed application"
-
echo "Archive currently deployed application"
...
@@ -71,7 +71,7 @@ deploy-to-staging:
...
@@ -71,7 +71,7 @@ deploy-to-staging:
echo "No matching file found. Skipping archive step."
echo "No matching file found. Skipping archive step."
fi
fi
-
echo "Deploy $WAR_FILE using JBoss CLI"
-
echo "Deploy $WAR_FILE using JBoss CLI"
-
scp $WAR_FILE $SERVER_USER@$SERVER_IP:$TMP_PATH
-
scp
target/
$WAR_FILE $SERVER_USER@$SERVER_IP:$TMP_PATH
-
echo "deploy $TMP_PATH/$WAR_FILE" > deploy.cli
-
echo "deploy $TMP_PATH/$WAR_FILE" > deploy.cli
-
scp deploy.cli $SERVER_USER@$SERVER_IP:$TMP_PATH
-
scp deploy.cli $SERVER_USER@$SERVER_IP:$TMP_PATH
-
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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment