Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
technical-reference
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
FE
technical-reference
Commits
e7e4010b
Commit
e7e4010b
authored
5 years ago
by
Michelle Weidling
Browse files
Options
Downloads
Patches
Plain Diff
Add example for GitLab Runner (closes
#9
)
parent
54a5dece
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rdd-technical-reference.md
+71
-0
71 additions, 0 deletions
rdd-technical-reference.md
rdd-technical-reference.pdf
+0
-0
0 additions, 0 deletions
rdd-technical-reference.pdf
with
71 additions
and
0 deletions
rdd-technical-reference.md
+
71
−
0
View file @
e7e4010b
...
...
@@ -235,6 +235,77 @@ The workflows we are using currently in Jenkins and Gitlab Runner are:
*
Distribution (Nexus, APTLY repo, eXist repo)
*
Release Management (@TODO: where to put this? gitflow?)
#### Sample configuration of the GitLab Runner
The following example illustrates how the GitLab Runner is used in SADE.
The fully documented version of this file can be viewed
[
here
](
https://gitlab.gwdg.de/SADE/SADE/blob/develop/.gitlab-ci.yml
)
.
```
image: docker.gitlab.gwdg.de/fontane-notizbuecher/build:latest
stages:
- build
- test
- deploy
build-develop:
except:
- master
- tags
stage: build
script:
- ant test
artifacts:
paths:
- build/*.xar
- test/
build-master:
only:
- master
stage: build
script:
- cp master.build.properties local.build.properties
- ant test
artifacts:
paths:
- build/*.xar
- test/
installation:
except:
- tags
stage: test
script:
- bash test/eXist-db-*/bin/startup.sh | tee output.log &
# wait for eXist to have started
- while [ $(curl --head --silent http://localhost:8080 | grep -c "200 OK") == 0 ]; do sleep 2s; done
# shutdown eXist
- bash test/eXist-db-*/bin/shutdown.sh
- ls -al /tmp; mv /tmp/tests-* . || true
artifacts:
paths:
- output.log
- test/tests-*.xml
- test/eXist-db-*/webapp/WEB-INF/logs/expath-repo.log
# this enables us to get information like test coverage.
reports:
junit: test/tests-*.xml
upload:
only:
- master
- develop
except:
- tags
stage: deploy
script:
- FILENAME=$(ls build/*.xar)
- curl -u ci:${EXIST_UPLOAD_PW} -X POST -F file=@${FILENAME} https://ci.de.dariah.eu/exist-upload
```
## Deployment and maintenance
-
@TODO: Puppet
...
...
This diff is collapsed.
Click to expand it.
rdd-technical-reference.pdf
+
0
−
0
View file @
e7e4010b
No preview for this file type
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