This is an automated email from the ASF dual-hosted git repository. toulmean pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
commit fd77b781894972caf59d3c25023068632ebc0752 Author: Antoine Toulme <[email protected]> AuthorDate: Fri Feb 7 12:23:30 2020 -0800 Add Jenkinsfile for CI --- Jenkinsfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8182f54 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +pipeline { + agent { label 'ubuntu' } + + stages { + stage('Get submodules') { + steps { + sh 'git submodule update --init --recursive' + } + } + stage('Set up gradle') { + steps { + sh """if [ ! -f "gradle-5.0-bin.zip" ]; then + wget https://services.gradle.org/distributions/gradle-5.0-bin.zip + unzip gradle-5.0-bin.zip + gradle-5.0/bin/gradle setup + fi + """ + } + } + stage('Build') { + steps { + sh "./gradlew allDependencies checkLicenses spotlessCheck test assemble" + } + } + stage('Publish') { + when { + branch "master" + } + steps { + sh "./gradlew publish" + } + } + } + post { + always { + junit '**/build/test-results/test/*.xml' + } + } +} \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
