forked from salesforce/ml4ir
-
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 salesforce#22 from SearchRelevance/strata_ci
@W-12436491 Add Strata CI configuration
- Loading branch information
Showing
5 changed files
with
62 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# https://confluence.internal.salesforce.com/display/public/ZEN/SFCI+Managed+V2+Pipelines | ||
global: | ||
email-reply-to: [email protected] | ||
production-branches: | ||
- master | ||
stages: | ||
build: | ||
- step: | ||
name: mvn-build-install | ||
image: dva-registry.internal.salesforce.com/sfci/docker-images/sfdc_centos7_java_build:latest | ||
commands: | ||
- rm -rf /root/.m2/repository/ | ||
- ln -s /cix/tmp/.strata/.m2/repository /root/.m2/repository | ||
- cd jvm | ||
- mvn --version | ||
- bash ../scripts/determine-next-version.bash ml4ir | ||
# set pom version to the latest released-version | ||
# increase the version incrementally | ||
- mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} | ||
- mvn install | ||
- step: | ||
name: git-tags | ||
image: dva-registry.internal.salesforce.com/sfci/docker-images/sfdc_centos7_java_build:latest | ||
when: | ||
- operator: EQ | ||
value: $$IS_PRODUCTION_BRANCH | ||
other: 'true' | ||
commands: | ||
- git config user.email "[email protected]" | ||
- git config user.name "SFCI Team" | ||
- pwd | ||
# Sets a tag like "ml4ir-5.0.7". The command does not attempt to push the tag. | ||
# Notice the '|| true' at the end! | ||
- mvn build-helper:parse-version scm:tag -Dtag=ml4ir-\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} -DpushChanges=false || true | ||
publish: | ||
- publish-jar: | ||
artifacts: | ||
- groupId: "com.salesforce.services.search" | ||
artifactId: "ml4ir-parent" | ||
- groupId: "com.salesforce.services.search" | ||
artifactId: "ml4ir-inference" |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# Comment line immediately above ownership line is reserved for related gus information. Please be careful while editing. | ||
#ECCN:Open Source | ||
#GUSINFO: Document Search Relevance,Default | ||
* |
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
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,16 @@ | ||
#!/bin/bash | ||
|
||
# Determines the next version to use to publish to Nexus. | ||
|
||
# Script is used by .strata.yml | ||
|
||
set -x | ||
|
||
GIT_TAG_PREFIX=$1 | ||
function determine_version_from_tags() { | ||
git tag | grep $GIT_TAG_PREFIX | sort --version-sort | tail -1 | perl -pe "s;${GIT_TAG_PREFIX}-;;" | ||
} | ||
|
||
# mvn build-helper:released-version versions:set -DnewVersion=\${releasedVersion.version} || \ | ||
mvn versions:set -DnewVersion=$(determine_version_from_tags) | ||
|