Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 991 Bytes

File metadata and controls

56 lines (43 loc) · 991 Bytes

Pipeline using Pipeline script

Dashboard > New Item > Pipeline

Definition = Pipeline script

Enter script

Windows
```
pipeline {
   agent any
    stages {
        stage('build') {
            steps {
                bat 'python -V'
            }
        }
    }
}
```

Linux
```
pipeline {
   agent any
    stages {
        stage('build') {
            steps {
                sh 'python -V'
            }
        }
    }
}
```

Output: