Commit efe94560 by xujian

xx

parent cc9582d7
......@@ -6,11 +6,9 @@ pipeline {
stage('Build') {
steps {
script {
@Grab('org.yaml:snakeyaml:1.29')
import org.yaml.snakeyaml.Yaml
def yaml = new Yaml()
def yamlFile = readFile('project.yaml')
def data = yaml.load(yamlFile)
def data = new groovy.yaml.YamlSlurper().parseText(yamlFile)
echo "Building ${data.base.namespace} version ${data.version}"
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment