Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
sispub
openbis
Commits
e9aed1e5
Commit
e9aed1e5
authored
11 years ago
by
anttil
Browse files
Options
Downloads
Patches
Plain Diff
SWE-22 / SSDM-32: cifex build added
SVN: 31302
parent
84b45954
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build_resources/build_gradle.sh
+1
-1
1 addition, 1 deletion
build_resources/build_gradle.sh
build_resources/gradle/build_cifex.sh
+67
-0
67 additions, 0 deletions
build_resources/gradle/build_cifex.sh
build_resources/gradle/build_openbis.sh
+0
-1
0 additions, 1 deletion
build_resources/gradle/build_openbis.sh
with
68 additions
and
2 deletions
build_resources/build_gradle.sh
+
1
−
1
View file @
e9aed1e5
...
@@ -23,7 +23,7 @@ then
...
@@ -23,7 +23,7 @@ then
${
DIR
}
/gradle/build_openbis.sh
$@
${
DIR
}
/gradle/build_openbis.sh
$@
elif
[
"
$1
"
==
"cifex"
]
elif
[
"
$1
"
==
"cifex"
]
then
then
echo
"
build
ing
cifex
"
${
DIR
}
/gradle/
build
_
cifex
.sh
$@
else
else
echo
"Unknown product
$1
"
echo
"Unknown product
$1
"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
build_resources/gradle/build_cifex.sh
0 → 100755
+
67
−
0
View file @
e9aed1e5
#!/bin/bash
PRODUCT
=
$1
BRANCH
=
$2
VERSION
=
$3
PROJECTS
=
"
\
gradle
\
authentication
\
common
\
dbmigration
\
cifex
\
"
LATEST_SPRINT
=
`
svn list svn+ssh://svncisd.ethz.ch/repos/cisd/cifex/branches/sprint/|awk
'{print $0, length()}'
|sort
-n
--key
=
2|awk
'{print $1'
}
|tail
-1
|sed
-e
"s/.x
\/
//g"
`
rm
-rf
/tmp/gradle-build
mkdir
-p
/tmp/gradle-build
for
project
in
$PROJECTS
;
do
if
[[
-z
"
$BRANCH
"
]]
then
BRANCH
=
trunk
fi
if
[
"
$BRANCH
"
==
"trunk"
]
then
SVN_PATH
=
"
${
project
}
/trunk"
elif
[
"
$BRANCH
"
==
"sprint"
]
then
if
[[
-z
"
$VERSION
"
]]
then
VERSION
=
$LATEST_SPRINT
fi
if
[[
$VERSION
==
*
.
*
]]
then
TAG
=
${
VERSION
}
/
VERSION
=
`
echo
$VERSION
|cut
-d
.
-f1
`
else
TAG
=
`
svn list svn+ssh://svncisd.ethz.ch/repos/cisd/cifex/tags/sprint/
${
VERSION
}
.x/|awk
'{print $0, length()}'
|sort
-n
--key
=
2|awk
'{print $1'
}
|tail
-1
`
fi
SVN_PATH
=
"cifex/tags/sprint/
${
VERSION
}
.x/
${
TAG
}${
project
}
"
svn
ls
svn+ssh://svncisd.ethz.ch/repos/cisd/
$SVN_PATH
--depth
=
empty 2>/dev/null
>
/dev/null
if
[
$?
-ne
0
]
then
echo
"Unable to read svn+ssh://svncisd.ethz.ch/repos/cisd/
$SVN_PATH
- aborting"
exit
1
fi
else
echo
"Unknown branch
$BRANCH
(valid options: trunk / sprint)"
exit
1
fi
svn co svn+ssh://svncisd.ethz.ch/repos/cisd/
$SVN_PATH
/tmp/gradle-build/
${
project
}
done
pushd
.
cd
/tmp/gradle-build/cifex
./gradlew build
-x
test
popd
mv
/tmp/gradle-build/cifex/targets/gradle/distributions/cifex-
*
.zip
.
This diff is collapsed.
Click to expand it.
build_resources/gradle/build_openbis.sh
+
0
−
1
View file @
e9aed1e5
...
@@ -7,7 +7,6 @@ VERSION=$3
...
@@ -7,7 +7,6 @@ VERSION=$3
PROJECTS
=
"
\
PROJECTS
=
"
\
gradle
\
gradle
\
authentication
\
authentication
\
build_resources
\
common
\
common
\
datamover
\
datamover
\
datastore_server
\
datastore_server
\
...
...
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