From 2de077034e568aabafc872d77dd7cbf60a01d3cc Mon Sep 17 00:00:00 2001 From: dany Date: Tue, 2 Aug 2022 18:12:25 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c9e0b17..aea76d2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,14 +7,15 @@ remote.allowAnyHosts = true remote.agent = false remote.logLevel = 'INFO' -def build_test() { - sh''' - printenv - echo "Hello $text" - echo $WORKSPACE - ls -al $WORKSPACE - find /var/jenkins_home -name "Jenkinsfile" - ''' +def build_antd() +{ + sh ''' + cat < EOF > "$WORKSPACE"/build_antd.sh + printenv + uname -a + EOF + ''' + docker.image("xsangle/ci-tools:latest-" + env.arch).withRun("bash $WORKSPACE/build_antd.sh") } pipeline{ @@ -41,9 +42,9 @@ pipeline{ { steps { script { - env.text = " every one" + env.arch = "arm64" } - build_test() + build_antd() } } stage('Remote SSH') {