Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
dCache
cta
Commits
d8dfd542
Commit
d8dfd542
authored
8 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Fixing systemtest logs artifacts
parent
eab59fc1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
continuousintegration/orchestration/delete_instance.sh
+2
-1
2 additions, 1 deletion
continuousintegration/orchestration/delete_instance.sh
continuousintegration/orchestration/run_systemtest.sh
+6
-2
6 additions, 2 deletions
continuousintegration/orchestration/run_systemtest.sh
with
8 additions
and
3 deletions
continuousintegration/orchestration/delete_instance.sh
+
2
−
1
View file @
d8dfd542
...
...
@@ -39,8 +39,9 @@ for podcontainer in "init -c ctainit" "ctacli -c ctacli" "ctaeos -c mgm" "ctafro
done
kubectl
--namespace
${
instance
}
exec
ctacli
--
tar
-C
/mnt/logs
-zcf
-
.
>
${
tmpdir
}
/varlog.tgz
if
[
-z
"
${
CI_PIPELINE_ID
}
"
]
;
then
if
[
!
-z
"
${
CI_PIPELINE_ID
}
"
]
;
then
# we are in the context of a CI run => save artifacts in the directory structure of the build
echo
"Saving logs as artifacts"
mkdir
-p
../../pod_logs/
${
instance
}
cp
-r
${
tmpdir
}
/
*
../../pod_logs/
${
instance
}
fi
...
...
This diff is collapsed.
Click to expand it.
continuousintegration/orchestration/run_systemtest.sh
+
6
−
2
View file @
d8dfd542
...
...
@@ -70,6 +70,10 @@ if [ ! -z "${error}" ]; then
fi
log_dir
=
"
${
orchestration_dir
}
/../../pod_logs/
${
namespace
}
"
mkdir
-p
${
log_dir
}
function
execute_log
{
mycmd
=
$1
logfile
=
$2
...
...
@@ -86,11 +90,11 @@ function execute_log {
}
# create instance
execute_log
"./create_instance.sh -n
${
namespace
}
${
CREATE_OPTS
}
2>&1"
"
${
orchestration_dir
}
/../..
/create_instance.log"
execute_log
"./create_instance.sh -n
${
namespace
}
${
CREATE_OPTS
}
2>&1"
"
${
log_dir
}
/create_instance.log"
# launch system test
cd
$(
dirname
${
systemtest_script
}
)
execute_log
"./
$(
basename
${
systemtest_script
}
)
-n
${
namespace
}
2>&1"
"
${
orchestration_dir
}
/../..
/systests.sh.log"
execute_log
"./
$(
basename
${
systemtest_script
}
)
-n
${
namespace
}
2>&1"
"
${
log_dir
}
/systests.sh.log"
cd
${
orchestration_dir
}
# delete instance?
...
...
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