Update 'Jenkinsfile'
This commit is contained in:
parent
77b8126aa2
commit
2de077034e
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -7,14 +7,15 @@ remote.allowAnyHosts = true
|
|||||||
remote.agent = false
|
remote.agent = false
|
||||||
remote.logLevel = 'INFO'
|
remote.logLevel = 'INFO'
|
||||||
|
|
||||||
def build_test() {
|
def build_antd()
|
||||||
sh'''
|
{
|
||||||
printenv
|
sh '''
|
||||||
echo "Hello $text"
|
cat < EOF > "$WORKSPACE"/build_antd.sh
|
||||||
echo $WORKSPACE
|
printenv
|
||||||
ls -al $WORKSPACE
|
uname -a
|
||||||
find /var/jenkins_home -name "Jenkinsfile"
|
EOF
|
||||||
'''
|
'''
|
||||||
|
docker.image("xsangle/ci-tools:latest-" + env.arch).withRun("bash $WORKSPACE/build_antd.sh")
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline{
|
pipeline{
|
||||||
@ -41,9 +42,9 @@ pipeline{
|
|||||||
{
|
{
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.text = " every one"
|
env.arch = "arm64"
|
||||||
}
|
}
|
||||||
build_test()
|
build_antd()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Remote SSH') {
|
stage('Remote SSH') {
|
||||||
|
Loading…
Reference in New Issue
Block a user