Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install wine-7.1.tar.xz on kali linux 
Shell :: verify large directory after copy files 
Shell :: how slice for loop filename without extension in batch file 
Shell :: how to permantely install library in collab 
Shell :: ubuntu deskyop repository 
Shell :: uncommitted modifications to Homebrew/homebrew-core 
Shell :: list directory xargs linux 
Shell :: where do i grab someones powershell code 
Shell :: npm ERR! code ENOENT npm ERR! syscall rename while trying to install npm install react-native-maps --save-exact 
Shell :: debian install tcpflow 
Php :: php detect request type 
Php :: tinker color disabled 
Php :: larave whereNotNull 
Php :: php replace spaces with dash 
Php :: php artisan serve another port 
Php :: laravel migrate only 1 file 
Php :: back() with errors in laravel 
Php :: php remove enter from string 
Php :: php get string size 
Php :: autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. 
Php :: laravel storage symlink 
Php :: findorfail laravel 
Php :: php console log 
Php :: laravel 8 db like query 
Php :: woocommerce cart button shortcode 
Php :: php convert bytes to mb 
Php :: php server request method 
Php :: laravel ever over https 
Php :: artisan make model with migration 
Php :: url encode php 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =