> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.stacktrack.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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:**
```java
pipeline {
    agent { label 'medium && java && linux && x86 && economy' }
    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'
            }
        }
    }
}
```
### 

### 