Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-web-deployer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ci-tools
ci-web-deployer
Merge requests
!13
Test deploy
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Test deploy
test_deploy
into
master
Overview
23
Commits
10
Pipelines
31
Changes
1
Merged
Alvaro Gonzalez Alvarez
requested to merge
test_deploy
into
master
6 years ago
Overview
1
Commits
10
Pipelines
31
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 31
e7fa46c3
6 years ago
version 30
91b332a0
6 years ago
version 29
f85c221f
6 years ago
version 28
7cfcf0f5
6 years ago
version 27
746a4907
6 years ago
version 26
746a4907
6 years ago
version 25
57f4bb56
6 years ago
version 24
2fa8b837
6 years ago
version 23
414f96b8
6 years ago
version 22
1b1a1222
6 years ago
version 21
521f0af0
6 years ago
version 20
13af8d37
6 years ago
version 19
5a85ad8d
6 years ago
version 18
604d3114
6 years ago
version 17
f0bc3f89
6 years ago
version 16
8d19c929
6 years ago
version 15
f0bcf06c
6 years ago
version 14
5aa00ba1
6 years ago
version 13
2ddf6392
6 years ago
version 12
4bde4ef7
6 years ago
version 11
d3e186a6
6 years ago
version 10
467a1d48
6 years ago
version 9
371f7881
6 years ago
version 8
e92c9635
6 years ago
version 7
da9f4e3d
6 years ago
version 6
d38729b6
6 years ago
version 5
e1c3cc95
6 years ago
version 4
95c90a15
6 years ago
version 3
94e72c69
6 years ago
version 2
5484c611
6 years ago
version 1
ae16594e
6 years ago
master (base)
and
latest version
latest version
8a14c9b7
10 commits,
6 years ago
version 31
e7fa46c3
9 commits,
6 years ago
version 30
91b332a0
8 commits,
6 years ago
version 29
f85c221f
7 commits,
6 years ago
version 28
7cfcf0f5
6 commits,
6 years ago
version 27
746a4907
5 commits,
6 years ago
version 26
746a4907
5 commits,
6 years ago
version 25
57f4bb56
4 commits,
6 years ago
version 24
2fa8b837
3 commits,
6 years ago
version 23
414f96b8
1 commit,
6 years ago
version 22
1b1a1222
3 commits,
6 years ago
version 21
521f0af0
5 commits,
6 years ago
version 20
13af8d37
7 commits,
6 years ago
version 19
5a85ad8d
6 commits,
6 years ago
version 18
604d3114
5 commits,
6 years ago
version 17
f0bc3f89
4 commits,
6 years ago
version 16
8d19c929
3 commits,
6 years ago
version 15
f0bcf06c
2 commits,
6 years ago
version 14
5aa00ba1
15 commits,
6 years ago
version 13
2ddf6392
14 commits,
6 years ago
version 12
4bde4ef7
13 commits,
6 years ago
version 11
d3e186a6
12 commits,
6 years ago
version 10
467a1d48
11 commits,
6 years ago
version 9
371f7881
10 commits,
6 years ago
version 8
e92c9635
9 commits,
6 years ago
version 7
da9f4e3d
8 commits,
6 years ago
version 6
d38729b6
7 commits,
6 years ago
version 5
e1c3cc95
6 commits,
6 years ago
version 4
95c90a15
5 commits,
6 years ago
version 3
94e72c69
4 commits,
6 years ago
version 2
5484c611
3 commits,
6 years ago
version 1
ae16594e
2 commits,
6 years ago
1 file
+
62
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
62
−
7
Options
stages
:
-
build
-
test
-
test_creation
-
test_deletion
variables
:
SSH_OPTIONS
:
-o StrictHostKeyChecking=no -o GSSAPIAuthentication=yes -o GSSAPITrustDNS=yes -o GSSAPIDelegateCredentials=yes
build
:
stage
:
build
@@ -20,16 +24,67 @@ build_dev:
variables
:
TO
:
${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
test eos rsync
:
stage
:
test
### Test
.script_creation
:
&script_creation
image
:
${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
script
:
-
mkdir -p public
-
date >public/$(date +%s)-$RANDOM
-
deploy-eos
-
cd public
-
md5sum $(find . -type f) >$MD5_FILE
# Generate md5sums of all files in piblic directory
-
echo "${EOS_ACCOUNT_PASSWORD}" | kinit "${EOS_ACCOUNT_USERNAME}@CERN.CH"
-
scp ${SSH_OPTIONS} $MD5_FILE ${EOS_ACCOUNT_USERNAME}@lxplus:~${EOS_ACCOUNT_USERNAME}/
-
ssh ${SSH_OPTIONS} ${EOS_ACCOUNT_USERNAME}@lxplus "cd ${EOS_PATH} && ls -l && cat ~/$MD5_FILE && md5sum -c ~/$MD5_FILE"
-
ssh ${SSH_OPTIONS} ${EOS_ACCOUNT_USERNAME}@lxplus "cd ${EOS_PATH} && rm ~/$MD5_FILE"
test creation eos rsync
:
stage
:
test_creation
variables
:
METHOD
:
rsync
EOS_PATH
:
/eos/user/j/jiradocs/test-ci-web-deployer
image
:
${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
EOS_PATH
:
/eos/user/j/jiradocs/test-ci-web-deployer
-rsync
MD5_FILE
:
public-rsync.md5sum
except
:
-
master
<<
:
*script_creation
artifacts
:
paths
:
-
public
test creation eos xrdcp
:
stage
:
test_creation
variables
:
METHOD
:
xrdcp
EOS_PATH
:
/eos/user/j/jiradocs/test-ci-web-deployer-xrdcp
MD5_FILE
:
public-xrdcp.md5sum
except
:
-
master
<<
:
*script_creation
.script_deletion
:
&script_deletion
image
:
${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}
script
:
-
mkdir -p public
-
date >public/$(date +%Y%m%d-%H:%M:%S)
-
rm -f public/*
-
deploy-eos
-
echo "${EOS_ACCOUNT_PASSWORD}" | kinit "${EOS_ACCOUNT_USERNAME}@CERN.CH"
-
ssh ${SSH_OPTIONS} ${EOS_ACCOUNT_USERNAME}@lxplus "test 0 -eq \$(ls ${EOS_PATH} | wc -l)"
test deletion eos rsync
:
stage
:
test_deletion
variables
:
METHOD
:
rsync
EOS_PATH
:
/eos/user/j/jiradocs/test-ci-web-deployer-rsync
<<
:
*script_deletion
# XRDCP doesn't delete files or folders, so it must fail
#
test deletion eos xrdcp
:
stage
:
test_deletion
allow_failure
:
true
variables
:
METHOD
:
xrdcp
EOS_PATH
:
/eos/user/j/jiradocs/test-ci-web-deployer-xrdcp
<<
:
*script_deletion
Loading