Update Jenkinsfile
add git checkout stage
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -8,6 +8,17 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout([
|
||||||
|
$class: 'GitSCM',
|
||||||
|
branches: [[ name: '*/main' ]],
|
||||||
|
userRemoteConfigs: [[
|
||||||
|
url: 'https://github.com/Trance-0/NoteNextra',
|
||||||
|
]]
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
nodejs(nodeJSInstallationName: 'NodeJS') {
|
nodejs(nodeJSInstallationName: 'NodeJS') {
|
||||||
|
|||||||
Reference in New Issue
Block a user