<commit_before>#Examples

## Checkmarx Security Job Builder

```
import jenkins.automation.utils.CheckmarxSecurityJobBuilder
   
def projectName ='foo'
new CheckmarxSecurityJobBuilder(
        name: "${projectName}-checkmarx",
        description: "Sample checkmarx security job",
        useOwnServerCredentials: false,
        serverUrl: "http://sample-serverUrl",
        username: "sample-username",
        password: "<PASSWORD>",
        groupId: "${groupId}",
        scanRepo: "https://github.com/OrlandoSoto/ckan-browser-tests",
        checkmarxComment: "Generated by Checkmarx job builder JAC",
        vulnerabilityThresholdEnabled: true,
        highThreshold: "1",
        mediumThreshold: "2",
        lowThreshold: "3",
        cleanWorkspace: true // Clean up the workspace before every checkout
).build(this);


```

## BDD Security Job Builder

```
import jenkins.automation.utils.BddSecurityJobBuilder
   
   def projectName ='foo'
   new BddSecurityJobBuilder(
           name: "${projectName}bdd_security_job",
           description: "Sample bdd security job",
           baseUrl: "http://google.com"
   ).build(this);
   

```

## Base Job Builder


```
import jenkins.automation.utils.BaseJobBuilder
   
   def baseJob = new BaseJobBuilder(
                   name: this.name,
                   description: this.description,
                   emails: this.emails 
   ).build(factory)

```

## Flow Job Builder


```
import jenkins.automation.utils.FlowJobBuilder
<commit_msg>updated example doc<commit_after>#Examples

## Checkmarx Security Job Builder

```
import jenkins.automation.utils.CheckmarxSecurityJobBuilder
   
def projectName ='foo'
new CheckmarxSecurityJobBuilder(
        name: "${projectName}-checkmarx",
        description: "Sample checkmarx security job",
        useOwnServerCredentials: false,
        serverUrl: "http://sample-serverUrl",
        username: "sample-username",
        password: "<PASSWORD>",
        groupId: "${groupId}",
        scanRepo: "https://github.com/OrlandoSoto/ckan-browser-tests",
        checkmarxComment: "Generated by Checkmarx job builder JAC",
        vulnerabilityThresholdEnabled: true,
        highThreshold: "1",
        mediumThreshold: "2",
        lowThreshold: "3",
        cleanWorkspace: true // Clean up the workspace before every checkout
).build(this);


```

## BDD Security Job Builder

```
import jenkins.automation.utils.BddSecurityJobBuilder
   
   def projectName ='foo'
   new BddSecurityJobBuilder(
           name: "${projectName}bdd_security_job",
           description: "Sample bdd security job",
           baseUrl: "http://google.com",
           bddSecurityRepo: "${bddSecurityRepo}",
           chromedriverPath: "\\/Users\\/sotoo\\/homebrew\\/bin\\/Chromedriver"
   ).build(this);
   

```

## Base Job Builder


```
import jenkins.automation.utils.BaseJobBuilder
   
   def baseJob = new BaseJobBuilder(
                   name: this.name,
                   description: this.description,
                   emails: this.emails 
   ).build(factory)

```

## Flow Job Builder


```
import jenkins.automation.utils.FlowJobBuilder

{'fraction_non_alphanumeric': 0.11517658288259625, 'fraction_numerical': 0.0019090041361756285, 'mean_word_length': 2.7788461538461537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2831646', 'n_tokens_mistral': 916, 'n_tokens_neox': 892, 'n_words': 202}