Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nightlies
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
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
bob
nightlies
Commits
bd814b24
There was a problem fetching the pipeline summary.
Commit
bd814b24
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Adapt checkout strategy depending on the runner
parent
07e89018
No related branches found
No related tags found
1 merge request
!25
New build strategy (closes #31)
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
scripts/rebuild.sh
+3
-8
3 additions, 8 deletions
scripts/rebuild.sh
with
5 additions
and
8 deletions
.gitlab-ci.yml
+
2
−
0
View file @
bd814b24
...
...
@@ -30,6 +30,7 @@ linux_27:
<<
:
*build_job
variables
:
PYTHON_VERSION
:
"
2.7"
GITLAB_CHECKOUT_STRATEGY
:
"
https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.idiap.ch/"
tags
:
-
docker
image
:
continuumio/conda-concourse-ci
...
...
@@ -38,6 +39,7 @@ linux_36:
<<
:
*build_job
variables
:
PYTHON_VERSION
:
"
3.6"
GITLAB_CHECKOUT_STRATEGY
:
"
https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.idiap.ch/"
tags
:
-
docker
image
:
continuumio/conda-concourse-ci
...
...
This diff is collapsed.
Click to expand it.
scripts/rebuild.sh
+
3
−
8
View file @
bd814b24
...
...
@@ -23,7 +23,7 @@ CI_COMMIT_REF="${CI_COMMIT_REF:-12345678}"
CI_COMMIT_REF_NAME
=
"
${
CI_COMMIT_REF_NAME
:-
@local
}
"
# The way to clone the repositories for this build
GITLAB_CHECKOUT_STRATEGY
=
"git@gitlab.idiap.ch
:
"
GITLAB_CHECKOUT_STRATEGY
=
"
${
GITLAB_CHECKOUT_STRATEGY
:-
git
@gitlab.idiap.ch
\
:
}
"
# Overrides some stuff
if
[
"
${
CI_COMMIT_REF_NAME
}
"
==
"@local"
]
;
then
...
...
@@ -34,12 +34,6 @@ fi
source
${
basedir
}
/_ci/functions.sh
unset
BOB_PACKAGE_VERSION
# If we build inside a Docker container, disables strict ssh key checking
if
[[
"
${
OS_SLUG
}
"
==
"linux-64"
]]
;
then
log_info
'Disabling strict host key checking for SSH...'
echo
-e
"Host *
\n\t
StrictHostKeyChecking no
\n\n
"
>
~/.ssh/config
fi
# Setup project variables
export_env CI_PROJECT_DIR
export_env CI_PROJECT_NAME
...
...
@@ -63,7 +57,8 @@ else
if
[
!
-d
${
basedir
}
/src
]
;
then
run_cmd
mkdir
-p
${
basedir
}
/src
fi
run_cmd git clone
--depth
1
${
GITLAB_CHECKOUT_STRATEGY
}${
CI_PROJECT_PATH
}
${
CI_PROJECT_DIR
}
log_info
"
$
git clone --depth 1
\$\{
GITLAB_CHECKOUT_STRATEGY
\}
/
${
CI_PROJECT_PATH
}
${
CI_PROJECT_DIR
}
"
git clone
--depth
1
${
GITLAB_CHECKOUT_STRATEGY
}${
CI_PROJECT_PATH
}
${
CI_PROJECT_DIR
}
fi
# Gets the latest stable version of a given package or returns the empty string
...
...
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