Articles on: Jenkins Build Service

Java Build and Test on Ubuntu AMD64

Java Build and Test on Ubuntu AMD64

Category: build_tools

Platform: ubuntu_amd64

Tools Used: Gradle Build Tool, Apache Maven Build Tool

Description: Build and test a Java project using Gradle and Maven on Ubuntu AMD64.

Pipeline:


pipeline {

agent { label 'medium && java && linux && x86' }
stages {
stage('Build') {
steps {
sh 'gradle build'
}
}
stage('Test') {
steps {
sh 'mvn test'
}
}
stage('UI Tests') {
steps {
sh 'gradle uiTest'
}
}
stage('Deploy') {
steps {
sh 'gradle deploy'
}
}
}
}



Updated on: 31/10/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!