Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ahmet Nihat Simsek
ebrains-spack-builds
Commits
daca20f1
Commit
daca20f1
authored
3 years ago
by
Athanasios Karmas
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
672cc9be
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_job.sh
+35
-0
35 additions, 0 deletions
create_job.sh
with
35 additions
and
0 deletions
create_job.sh
0 → 100644
+
35
−
0
View file @
daca20f1
#!/bin/bash
#
# https://docs.gitlab.com/13.12/ee/api/job_artifacts.html#get-job-artifacts
# https://stackoverflow.com/questions/53837426/gitlab-how-can-i-programatically-download-the-artifacts-issued-at-end-of-ci-pip
# url structure : GET /projects/:id/jobs/:job_id/artifacts
#
BUILD_ENV
=
$1
cat
<<
EOT
>> simplejob.yml
apiVersion: batch/v1
kind: Job
metadata:
name: simplejob
spec:
parallelism: 1
completions: 1
template:
metadata:
name: testjob
spec:
containers:
- name: simplejob
image: docker-registry.ebrains.eu/tc/ebrains-spack-build-env:latest
volumeMounts:
- name: sharedbin
mountPath: /srv
command: ["/usr/local/bin/deploy-build-env.sh", "
$BUILD_ENV
"]
volumes:
- name: sharedbin
persistentVolumeClaim:
claimName: shared-binaries
restartPolicy: Never
EOT
This diff is collapsed.
Click to expand it.
Preview
0%
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