0

After logging on to jenkins service with my administrator account, this is happening... (according to this link Run batch file as administrator on Jenkins?)

this is my Jenkinsfile

#!/usr/bin/env groovy
pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                bat("cd C:/")
                echo 'Building..'
            }
        }
    }
}

And Console Output of this Jenkinsfile is this

...
[GitLab Pipeline Status] Notifying branch build status: RUNNING Dialogue/main: Build 
started...
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] bat

and then stuck.

Do you guys know why this happend?

ps) sorry for my English.

0 Answers0