forked from fabric8-updatebot/updatebot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fabric8-updatebot#5 from jstrachan/malarkey
getting ready for the new shiny pipeline stuff
- Loading branch information
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ensure we're not on a detached head | ||
git checkout master | ||
|
||
# until we switch to the new kubernetes / jenkins credential implementation use git credentials store | ||
git config credential.helper store | ||
|
||
# so we can retrieve the version in later steps | ||
echo $(jx-release-version) > target/VERSION | ||
mvn versions:set -DnewVersion=$(cat target/VERSION) | ||
|
||
mvn clean -B | ||
mvn -V -B -e -U install org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy -P release -P openshift -DnexusUrl=https://oss.sonatype.org -DserverId=oss-sonatype-staging | ||
|
||
# now the sonatype repo ids will be on disk | ||
|
||
#jx step nexus_release | ||
|
||
#git commit -a -m 'release $(cat target/VERSION)' | ||
#git push origin release-$(cat target/VERSION) | ||
|
||
|