<!-- HILSTER htf_demo 4.3.1 -->
**HILSTER Testing Framework Demonstrator 4.3.1** · [HTML](../continuous-integration.html) · [Complete PDF manual](../_downloads/htf_demo-4.3.1.pdf)

# Continuous Integration

## Jenkins

The Jenkins demo is located in `continuous_integration/jenkins`.

You need Java to run the demo. You also need Cygwin on Windows and the Cygwin binaries must be in PATH environment
variable.

The demo folder contains a simple Jenkins job configured to use htf.

First download [jenkins.war](http://mirrors.jenkins.io/war/latest/jenkins.war)
into `continuous_integration/jenkins` folder.

Then, on Windows, run

```bash
set JENKINS_HOME=jenkins_home
java -jar jenkins.war
```

and on Linux run

```bash
export JENKINS_HOME=`pwd`/jenkins_home
java -jar jenkins.war
```

Now you can access the Jenkins web frontend using your browser by opening [this link](http://localhost:8080).

Username and password are `jenkins`.

The existing job `htf_demo` contains the pipeline script that runs `htf` and stores and evaulates the reports.

```default
node("master") {
    stage("Run tests using htf") {
        try {
            sh "htf -H results.html -x results.xml ../../../../../core/*.py || true"
        }
        finally {
            archiveArtifacts artifacts: 'results.html', fingerprint: true
            junit 'results.xml'
        }
    }
}
```
