title: How to write script to perform sum of integers in jenkins , by taking input from parameters
body: <p>I want to perform sum of integers (c = a+b) in jenkins, initially i have defined the value of a by giving def a = 5,  but I want to take values of b from parameters . So i added string parameter but this is not considering as integer ,instead it is just attaching the 2 values , is there any way so that i can take inputs of  b from parameter and perform addition
  the pipeline is as follows</p>
  <p>pipeline {
  agent any
  stages {
  stage('Stage 1') {
  steps {
  script{</p>
  <pre><code>             def a = 5; 
               //def b = &quot;${params.inputvalue}&quot;;
               c = &quot;${a + b}&quot; ;
               
               echo &quot;value of c is  ${c}&quot;
              }
          }
      }
  }
  </code></pre>
  <p>}</p>
  <p>in parameter if i give value of b as 2 the output it's giving as 25 but the expected output is 7 i.e 2+5</p>