Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69727

Build step "execute shell marked as failure "

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core

      Hi,
      I'm trying to run a job on Mac, the job is started but when reaching "Execute Shell" step with the following script:

      npm install

      node build.js -kvv 9.3.11

      Getting the below error:

      Started by user Infinity-Digital

      Running as SYSTEM

      [EnvInject] - Loading node environment variables.

      Building in workspace /Users/ec2-user/.jenkins/workspace/androidjenkins

      [androidjenkins] $ /bin/zsh -xe /var/folders/l9/4wh_y499367fsllzf8m6kspc0000gn/T/jenkins9530148860437939455.sh

      +/Users/ec2-user/.zshenv:1> NODE_HOME=/usr/local/bin/node

      +/Users/ec2-user/.zshenv:2> NPM=/usr/local/bin/npm/bin

      +/Users/ec2-user/.zshenv:3> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home

      +/Users/ec2-user/.zshenv:4> PATH=/usr/local/bin:/Users/ec2-user/.jenkins/workspace/apache-ant-1.10.12/bin

      +/Users/ec2-user/.zshenv:5> ANDROID_HOME=/Users/ec2-user/Library/Android/sdk

      +/Users/ec2-user/.zshenv:6> ANT_HOME=/Users/ec2-user/.jenkins/workspace/apache-ant-1.10.12

      +/var/folders/l9/4wh_y499367fsllzf8m6kspc0000gn/T/jenkins9530148860437939455.sh:2> npm install

       

      up to date, audited 57 packages in 528ms

       

      1 critical severity vulnerability

       

      To address all issues, run:

        npm audit fix --force

       

      Run `npm audit` for details.

      +/var/folders/l9/4wh_y499367fsllzf8m6kspc0000gn/T/jenkins9530148860437939455.sh:3> node build.js -kvv 9.3.11

      Plugins download has started...

      Download finished : macsite-9.3.11.xml

      Download finished : com.kony.visualizer.mac (features plugin)

      Plugin download has been completed.

      9.3.11 saved.

      Extracting plugins...

      pluginversions.properties saved to bundles folder.

      Loading[config]../Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/config/default.js

       

      Base directory not found for Visualizer. Setting useProxy to false.

       

      Workspace dir :: /Users/ec2-user/.jenkins/workspace :::::

       

      Setting[java_home].. /Library/Java/JavaVirtualMachines/jdk-11.0.16.jdk/Contents/Home

       

      [32m[2022-09-28 11:19:26.768] [INFO] ci - [39m

       

      [36m[2022-09-28 11:19:26.772] [DEBUG] ci - [39m⚀ Loading ... /Users/ec2-user/.jenkins/workspace/androidjenkins/projectProperties.json

       

      [36m[2022-09-28 11:19:26.773] [DEBUG] ci - [39m⚀ Loading ... /Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/config/HeadlessBuild-Default.json

       

      [36m[2022-09-28 11:19:26.773] [DEBUG] ci - [39m⚀ Loading ... /Users/ec2-user/.jenkins/workspace/androidjenkins/HeadlessBuild.properties

       

      [32m[2022-09-28 11:19:26.843] [INFO] ci - [39m

       

              -------------------------------

                     Kony CI v9.3.11

              -------------------------------

               node version: v16.17.0

       

       

      /Users/ec2-user/.jenkins/workspace/apache-ant-1.10.12/bin/ant: line 27: uname: command not found

      /Users/ec2-user/.jenkins/workspace/apache-ant-1.10.12/bin/ant: line 28: uname: command not found

      /Users/ec2-user/.jenkins/workspace/apache-ant-1.10.12/bin/ant: line 63: sed: command not found

      /Users/ec2-user/.jenkins/workspace/apache-ant-1.10.12/bin/ant: line 122: uname: command not found

      Build failed

       

      [36m[2022-09-28 11:19:27.366] [DEBUG] ci - [39m ➠ Pre-build validations

       

      [32m[2022-09-28 11:19:27.366] [INFO] ci - [39m✓ ANT_HOME

       

      [32m[2022-09-28 11:19:27.367] [INFO] ci - [39m✓ javaloc

       

      [32m[2022-09-28 11:19:27.367] [INFO] ci - [39m✓ androidHome

       

      [32m[2022-09-28 11:19:27.368] [INFO] ci - [39m✓ java version

       

      [31m[2022-09-28 11:19:27.370] [ERROR] ci - [39mBuild Failed!

      • CustomError:  ant 1.10.8 - not found

          at g (/Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/utils/validationUtils.js:1:3783)

          at /Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/utils/validationUtils.js:1:3357

          at Array.forEach (<anonymous>)

          at e (/Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/utils/validationUtils.js:1:3345)

          at Object.a.preBuildValidations (/Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/utils/validationUtils.js:1:846)

          at runApplicationBuild (/Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/BuildManager.js:1:1620)

          at Object.<anonymous> (/Users/ec2-user/.jenkins/workspace/bundles/com.kony.studio.viz.core.mac64/konywebstudio/kbuild/BuildManager.js:1:9392)

          at Module._compile (node:internal/modules/cjs/loader:1126:14)

          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)

          at Module.load (node:internal/modules/cjs/loader:1004:32)

          at Function.Module._load (node:internal/modules/cjs/loader:839:12)

          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)

          at node:internal/main/run_main_module:17:47

      {   code: 58 }

       

      Build step 'Execute shell' marked build as failure

      [PostBuildScript] - [INFO] Executing post build scripts.

      [PostBuildScript] - [ERROR] No file path provided for script file #0.

      Finished: FAILURE

      Please advice.

      (I've set PATH and sys variables in Mac properly)

            richscze nobody
            rameshrc ramesh chalavadi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: