Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Julien Cabieces
otb
Commits
a3418f4a
Commit
a3418f4a
authored
5 years ago
by
Stéphane Albert
Browse files
Options
Downloads
Patches
Plain Diff
ENH: CI: Fixed CI scripts to show proper revision number.
parent
0845bf3a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CI/main_superbuild.cmake
+6
-1
6 additions, 1 deletion
CI/main_superbuild.cmake
CI/prepare_superbuild.cmake
+6
-0
6 additions, 0 deletions
CI/prepare_superbuild.cmake
with
12 additions
and
1 deletion
CI/main_superbuild.cmake
+
6
−
1
View file @
a3418f4a
...
...
@@ -44,7 +44,12 @@ file(READ "${OTB_SOURCE_DIR}/sb_branch.txt" BRANCH_NAME)
###############################################################################
set
(
REMOTE
"https://gitlab.orfeo-toolbox.org/gbonnefille/superbuild-artifact.git"
)
# set ( BRANCH_NAME "${IMAGE_NAME}/${SB_MD5}")
set
(
GIT
"git"
)
# Look for a GIT command-line client.
find_program
(
CTEST_GIT_COMMAND NAMES git git.cmd
)
# FIXME: Replace ${GIT} variable with $[CTEST_GIT_COMMAND}"
set
(
GIT
"
${
CTEST_GIT_COMMAND
}
"
)
execute_process
(
COMMAND
${
GIT
}
"clone"
"
${
REMOTE
}
"
"--branch"
"
${
BRANCH_NAME
}
"
...
...
This diff is collapsed.
Click to expand it.
CI/prepare_superbuild.cmake
+
6
−
0
View file @
a3418f4a
...
...
@@ -122,7 +122,13 @@ file ( WRITE "${OTB_SOURCE_DIR}/sb_branch.txt" "${IMAGE_NAME}/${SB_MD5}")
message
(
"Checking out git for existence of archive"
)
set
(
REMOTE
"https://gitlab.orfeo-toolbox.org/gbonnefille/superbuild-artifact/"
)
set
(
BRANCH_NAME
"
${
IMAGE_NAME
}
/
${
SB_MD5
}
"
)
# Look for a GIT command-line client.
find_program
(
CTEST_GIT_COMMAND NAMES git git.cmd
)
# FIXME: Replace ${GIT} variable with $[CTEST_GIT_COMMAND}"
set
(
GIT
"git"
)
execute_process
(
COMMAND
${
GIT
}
"ls-remote"
"
${
REMOTE
}
"
"
${
BRANCH_NAME
}
"
OUTPUT_VARIABLE IS_SB_BUILD
...
...
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