Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It also seems Note that until we enable Allow anonymous read access, this the cli does not work for build. See https://stackoverflow.com/questions/30066657/jenkins-cant-find-the-job-when-build-job-why

...

Tip

This can be done from FlexDeploy unix shell plugin using the command below.

  • Details in blue need to be updated for your setup or job being invoked.

  • Add necessary inputs to a FlexDeploy workflow and use the values in command below in place of INPUT1, INPUT2.

  • We are using JENKINS_URL, JENKINS_USERNAME, JENKINS_PASSWORD properties, which can be added to FlexDeploy workflow properties and values will be defined on Topology.

$JAVA_HOME/bin/java -jar /u01/jenkins/jenkins-cli.jar -s $FDJENKINS_URL build <Job Name> -f -s -v -p INPUT1=$WF_INP1 -p INPUT2=$WF_INP2 --username $FDJENKINS_USERNAME --password JENKINS_PASSWORD

Image RemovedImage Added

Now let's check what was passed to Jenkins job and it matches our input parameters.

...