Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CI Scripts
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
CI Scripts
Commits
e823ace3
Commit
e823ace3
authored
Sep 2, 2021
by
Sebastian Pape
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning before running pipeline
parent
95612084
Branches
Branches containing commit
No related tags found
1 merge request
!29
Cleaning before running pipeline
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared_scripts.yml
+10
-3
10 additions, 3 deletions
shared_scripts.yml
with
10 additions
and
3 deletions
shared_scripts.yml
+
10
−
3
View file @
e823ace3
...
@@ -7,6 +7,7 @@ variables:
...
@@ -7,6 +7,7 @@ variables:
GIT_STRATEGY
:
none
# we disable fetch, clone or checkout for every job
GIT_STRATEGY
:
none
# we disable fetch, clone or checkout for every job
GIT_CHECKOUT
:
"
false"
# as we only want to checkout and fetch in the preperation stage
GIT_CHECKOUT
:
"
false"
# as we only want to checkout and fetch in the preperation stage
GIT_SUBMODULE_STRATEGY
:
"
recursive"
GIT_SUBMODULE_STRATEGY
:
"
recursive"
GIT_CLEAN_FLAGS
:
none
GIT_DEPTH
:
"
1"
GIT_DEPTH
:
"
1"
NUMBER_OF_OLD_VERSIONS
:
3
# number of old revisions to keep after the deploy
NUMBER_OF_OLD_VERSIONS
:
3
# number of old revisions to keep after the deploy
CLUSTER_ADDRESS
:
"
login.hpc.itc.rwth-aachen.de"
CLUSTER_ADDRESS
:
"
login.hpc.itc.rwth-aachen.de"
...
@@ -33,13 +34,13 @@ variables:
...
@@ -33,13 +34,13 @@ variables:
-
if [[ "${RUN_SETUP}" == "true" ]] ; then
-
if [[ "${RUN_SETUP}" == "true" ]] ; then
-
bash ${CI_PROJECT_DIR}/setup.sh --install-default-plugins
-
bash ${CI_PROJECT_DIR}/setup.sh --install-default-plugins
-
fi
-
fi
-
git submodule add ${CI_PROJECT_URL}.git/
${CI_PROJECT_DIR}/
Plugins/${CI_PROJECT_NAME}
-
git submodule add ${CI_PROJECT_URL}.git/ Plugins/${CI_PROJECT_NAME}
-
cd ${CI_PROJECT_DIR}/Plugins/${CI_PROJECT_NAME} && git checkout ${CI_COMMIT_SHA}
-
cd ${CI_PROJECT_DIR}/Plugins/${CI_PROJECT_NAME} && git checkout ${CI_COMMIT_SHA}
-
cd ${CI_PROJECT_DIR}
-
cd ${CI_PROJECT_DIR}
-
for i in "${!dependencies[@]}"; do
-
for i in "${!dependencies[@]}"; do
-
git submodule add -b "${i%%@*}" --depth 1 ${dependencies[$i]}
${CI_PROJECT_DIR}/
Plugins/${i#*@}
-
git submodule add -b "${i%%@*}" --depth 1 ${dependencies[$i]} Plugins/${i#*@}
-
done
-
done
-
rm -rf ${CI_PROJECT_DIR}/.git
-
git remote rm origin && git commit -am "Generated Project"
artifacts
:
artifacts
:
name
:
"
Generated_Project_${CI_PROJECT_NAME}"
name
:
"
Generated_Project_${CI_PROJECT_NAME}"
paths
:
[
"
*"
]
paths
:
[
"
*"
]
...
@@ -59,6 +60,9 @@ variables:
...
@@ -59,6 +60,9 @@ variables:
-
windows
-
windows
-
unreal-4.22
-
unreal-4.22
script
:
script
:
# Clean folder before building
-
git clean -qxfdf; git submodule foreach --quiet --recursive git clean -qxfdf
# Preparation and building stage
-
$env:Path="$env:PREPEND_PATH;$env:Path;$env:APPEND_PATH"
-
$env:Path="$env:PREPEND_PATH;$env:Path;$env:APPEND_PATH"
-
$env:PROJECT_NAME=(Get-ChildItem *.uproject).BaseName
-
$env:PROJECT_NAME=(Get-ChildItem *.uproject).BaseName
-
. "$env:UE_ENGINE_FOLDER\Build\BatchFiles\RunUAT.bat" BuildCookRun -Project="$env:CI_PROJECT_DIR/$env:PROJECT_NAME.uproject" -WaitMutex -NoP4 -TargetPlatform=Win64 -ClientConfig="$env:CLIENT_CONFIG" -Cook -allmaps -Build -Stage -Pak -Iterate -utf8output -Archive -ArchiveDirectory="$env:CI_PROJECT_DIR/Release/$env:CI_PROJECT_NAME" -Rocket -Package ($env:EXTRA_ARGS); $env:EXIT_CODE=$LASTEXITCODE
-
. "$env:UE_ENGINE_FOLDER\Build\BatchFiles\RunUAT.bat" BuildCookRun -Project="$env:CI_PROJECT_DIR/$env:PROJECT_NAME.uproject" -WaitMutex -NoP4 -TargetPlatform=Win64 -ClientConfig="$env:CLIENT_CONFIG" -Cook -allmaps -Build -Stage -Pak -Iterate -utf8output -Archive -ArchiveDirectory="$env:CI_PROJECT_DIR/Release/$env:CI_PROJECT_NAME" -Rocket -Package ($env:EXTRA_ARGS); $env:EXIT_CODE=$LASTEXITCODE
...
@@ -104,6 +108,9 @@ variables:
...
@@ -104,6 +108,9 @@ variables:
-
centos
-
centos
-
unreal-4.22
-
unreal-4.22
script
:
script
:
# Clean folder before building
-
git clean -qxfdf && git submodule foreach --quiet --recursive git clean -qxfdf
# Preparation and building stage
-
PATH=$PREPEND_PATH:$PATH:$APPEND_PATH
-
PATH=$PREPEND_PATH:$PATH:$APPEND_PATH
-
export PROJECT_NAME=`basename $(find *.uproject) .uproject`
-
export PROJECT_NAME=`basename $(find *.uproject) .uproject`
-
EXIT_CODE=0
-
EXIT_CODE=0
...
...
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