Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
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
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
cs525-sp18-g07
spark
Commits
8421034e
Commit
8421034e
authored
10 years ago
by
Patrick Wendell
Browse files
Options
Downloads
Patches
Plain Diff
Changes to dev release script
parent
1d84964b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/create-release/create-release.sh
+32
-27
32 additions, 27 deletions
dev/create-release/create-release.sh
with
32 additions
and
27 deletions
dev/create-release/create-release.sh
+
32
−
27
View file @
8421034e
...
...
@@ -21,47 +21,52 @@
# Publishes releases to Maven and packages/copies binary release artifacts.
# Expects to be run in a totally empty directory.
#
# Options:
# --package-only only packages an existing release candidate
#
# Would be nice to add:
# - Send output to stderr and have useful logging in stdout
# - Have this use sbt rather than Maven release plug in
GIT_USERNAME
=
pwendell
GIT_PASSWORD
=
XXX
GPG_PASSPHRASE
=
XXX
GIT_BRANCH
=
branch-
0.9
RELEASE_VERSION
=
0.9.0-incubating
RC_NAME
=
rc2
USER_NAME
=
pwendell
GIT_USERNAME
=
${
GIT_USERNAME
:-
pwendell
}
GIT_PASSWORD
=
${
GIT_PASSWORD
:-
XXX
}
GPG_PASSPHRASE
=
${
GPG_PASSPHRASE
:-
XXX
}
GIT_BRANCH
=
${
GIT_BRANCH
:-
branch
-
1.0
}
RELEASE_VERSION
=
${
RELEASE_VERSION
:-
1
.0.0
}
RC_NAME
=
${
RC_NAME
:-
rc2
}
USER_NAME
=
${
USER_NAME
:-
pwendell
}
set
-e
GIT_TAG
=
v
$RELEASE_VERSION
-
$RC_NAME
# Artifact publishing
git clone https://git-wip-us.apache.org/repos/asf/spark.git
-b
$GIT_BRANCH
cd
spark
export
MAVEN_OPTS
=
"-Xmx3g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=1g"
if
[[
!
"
$@
"
=
~
--package-only
]]
;
then
echo
"Creating and publishing release"
# Artifact publishing
git clone https://git-wip-us.apache.org/repos/asf/spark.git
-b
$GIT_BRANCH
cd
spark
export
MAVEN_OPTS
=
"-Xmx3g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=1g"
mvn
-Pyarn
release:clean
mvn
-Pyarn
release:clean
mvn
-DskipTests
\
-Darguments
=
"-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=
${
GPG_PASSPHRASE
}
"
\
-Dusername
=
$GIT_USERNAME
-Dpassword
=
$GIT_PASSWORD
\
-Dhadoop
.version
=
2.2.0
-Dyarn
.version
=
2.2.0
\
-Pyarn
-Phive
-Pspark-ganglia-lgpl
\
-Dtag
=
$GIT_TAG
-DautoVersionSubmodules
=
true
\
--batch-mode
release:prepare
mvn
-DskipTests
\
-Darguments
=
"-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=
${
GPG_PASSPHRASE
}
"
\
-Dusername
=
$GIT_USERNAME
-Dpassword
=
$GIT_PASSWORD
\
-Dhadoop
.version
=
2.2.0
-Dyarn
.version
=
2.2.0
\
-Pyarn
-Phive
-Pspark-ganglia-lgpl
\
-Dtag
=
$GIT_TAG
-DautoVersionSubmodules
=
true
\
--batch-mode
release:prepare
mvn
-DskipTests
\
-Darguments
=
"-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=
${
GPG_PASSPHRASE
}
"
\
-Dhadoop
.version
=
2.2.0
-Dyarn
.version
=
2.2.0
\
-Pyarn
-Phive
-Pspark-ganglia-lgpl
\
release:perform
mvn
-DskipTests
\
-Darguments
=
"-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=
${
GPG_PASSPHRASE
}
"
\
-Dhadoop
.version
=
2.2.0
-Dyarn
.version
=
2.2.0
\
-Pyarn
-Phive
-Pspark-ganglia-lgpl
\
release:perform
rm
-rf
spark
rm
-rf
spark
fi
# Source and binary tarballs
echo
"Packaging release tarballs"
git clone https://git-wip-us.apache.org/repos/asf/spark.git
cd
spark
git checkout
--force
$GIT_TAG
...
...
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