Hi!
I have this pipeline:
pipeline{
agent { label: "linux"}
options{
buildDiscarder logRotator (artifactDaysToKeepStr: '', artifactNumToKeepStr:'5',daysToKeepStr: '',numToKeepStr: '5')
disableConcurrentBuilds()
}
stages{
stage('Hello'){
steps{
echo 'Hello'
}
}
}
}
and I got this error:
WorkflowScript: 2: Expected an agent @ line 2, column 5.
agent { label: “linux”}
^WorkflowScript: 2: No agent type specified. Must be one of [any, label, none] @ line 2, column 5.
agent { label: “linux”}
^2 errors
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
If anyone knows what the problem is-
itll help me a lot
thanks
Frida