Horje
jenkinfile.sh Code Example
jenkinfile.sh
    pipeline {

      agent any
      stages{
        stage("Checkout") {
            steps {
                    dir('def exists = fileNotExists \'git\'') {
                      bat label: '', script: 'sh "mkdir.sh'
                    }
                    dir ('cm') {
                        git branch: 'dev',
                        credentialsId: '<your credential id>',
                        url: '<yours git url>'
                    }
                }
            } //End of Checkout stage
        stage("TestShellScript") {
            steps {
                bat label: '', script: 'sh "PrintNumber.sh"'
            }
          }
        }//End of stages
    } // End of pipeline


Note: cat mkdir.sh
#!/bin/bash
#Create a directory
mkdir git




Shell

Related
shreck Code Example shreck Code Example
powershell delete columns in multiple csv files Code Example powershell delete columns in multiple csv files Code Example
how install mongodb on raspberry Code Example how install mongodb on raspberry Code Example
cp -r copy linux directory or file Code Example cp -r copy linux directory or file Code Example
how export tables database in command line linux Code Example how export tables database in command line linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10