Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 753 Bytes

File metadata and controls

41 lines (36 loc) · 753 Bytes

JENKINSFILE using SCM (Declarative)

Dashboard > New Item > Pipeline Pipeline script from SCM Enter github repo Credentials Specify branch Script Path = JENKINSFILE1

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

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