Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
07c0086c
Commit
07c0086c
authored
Mar 22, 2021
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run CI_PRE_CLONE_SCRIPT in sub shell
parent
2714854b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
doc/development/pipelines.md
doc/development/pipelines.md
+17
-15
No files found.
doc/development/pipelines.md
View file @
07c0086c
...
@@ -536,21 +536,23 @@ The pre-clone step works by using the `CI_PRE_CLONE_SCRIPT` variable
...
@@ -536,21 +536,23 @@ The pre-clone step works by using the `CI_PRE_CLONE_SCRIPT` variable
The
`CI_PRE_CLONE_SCRIPT`
is currently defined as a project CI/CD variable:
The
`CI_PRE_CLONE_SCRIPT`
is currently defined as a project CI/CD variable:
```
shell
```
shell
echo
"Downloading archived master..."
(
wget
-O
/tmp/gitlab.tar.gz https://storage.googleapis.com/gitlab-ci-git-repo-cache/project-278964/gitlab-master-shallow.tar.gz
echo
"Downloading archived master..."
wget
-O
/tmp/gitlab.tar.gz https://storage.googleapis.com/gitlab-ci-git-repo-cache/project-278964/gitlab-master-shallow.tar.gz
if
[
!
-f
/tmp/gitlab.tar.gz
]
;
then
if
[
!
-f
/tmp/gitlab.tar.gz
]
;
then
echo
"Repository cache not available, cloning a new directory..."
echo
"Repository cache not available, cloning a new directory..."
exit
exit
fi
fi
rm
-rf
$CI_PROJECT_DIR
rm
-rf
$CI_PROJECT_DIR
echo
"Extracting tarball into
$CI_PROJECT_DIR
..."
echo
"Extracting tarball into
$CI_PROJECT_DIR
..."
mkdir
-p
$CI_PROJECT_DIR
mkdir
-p
$CI_PROJECT_DIR
cd
$CI_PROJECT_DIR
cd
$CI_PROJECT_DIR
tar
xzf /tmp/gitlab.tar.gz
tar
xzf /tmp/gitlab.tar.gz
rm
-f
/tmp/gitlab.tar.gz
rm
-f
/tmp/gitlab.tar.gz
chmod
a+w
$CI_PROJECT_DIR
chmod
a+w
$CI_PROJECT_DIR
)
```
```
The first step of the script downloads
`gitlab-master.tar.gz`
from
The first step of the script downloads
`gitlab-master.tar.gz`
from
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment