-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bump minor version to 7.1, add Jenkinsfile to release snapshot (#106
) and assorted changes to gradle config to reduce duplication and bring it inline with other Terasology-managed libraries.
- Loading branch information
Showing
19 changed files
with
228 additions
and
411 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,48 @@ | ||
pipeline { | ||
agent { | ||
label "java8" | ||
} | ||
stages { | ||
stage('Build') { | ||
steps { | ||
sh './gradlew --info --console=plain --parallel assemble compileTest' | ||
} | ||
post { | ||
always { | ||
recordIssues enabledForFailure: true, tools: [java()] | ||
} | ||
} | ||
} | ||
stage('Analytics') { | ||
steps { | ||
// `test` seems flaky when run with --parallel, so separate it from other checks | ||
sh './gradlew --info --console=plain --continue test' | ||
sh './gradlew --info --console=plain --parallel --continue javadoc check --exclude-task test' | ||
} | ||
post { | ||
always { | ||
junit testResults: '**/build/test-results/test/*.xml' | ||
recordIssues tools: [ | ||
javaDoc(), | ||
taskScanner(includePattern: '**/*.java,**/*.groovy,**/*.gradle,**/*.kts', lowTags: 'WIBNIF', normalTags: 'TODO, FIXME', highTags: 'ASAP') | ||
] | ||
//Note: Javadoc archiver only works for one directory :-( | ||
javadoc javadocDir: 'gestalt-entity-system/build/docs/javadoc', keepAll: false | ||
} | ||
} | ||
} | ||
stage('Publish') { | ||
when { | ||
anyOf { | ||
branch 'develop' | ||
branch pattern: "release/v\\d+.x", comparator: "REGEXP" | ||
} | ||
} | ||
steps { | ||
withCredentials([usernamePassword(credentialsId: 'artifactory-gooey', usernameVariable: 'artifactoryUser', passwordVariable: 'artifactoryPass')]) { | ||
sh './gradlew --info --console=plain -Dorg.gradle.internal.publish.checksums.insecure=true publish -PmavenUser=${artifactoryUser} -PmavenPass=${artifactoryPass}' | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.