in Jenkins by (5.2k points)
Give any simple example of Jenkins script.

1 Answer

0 votes
by (5.2k points)
This is a Jenkins declarative pipeline code for Java:

pipeline {

    agent

    stages {

          stage('Building your first asset') {

               agent

               steps {

                   echo 'Build asset'

    }

    }

        stage('Test') {

             agent

             steps {

                   echo 'Building project 1'

             }

            }

         }

}

Related questions

0 votes
asked Mar 3, 2020 in ReactJS by miceperry (775 points)
0 votes
asked Apr 28, 2021 in Jenkins by Robindeniel (20.8k points)
+1 vote
asked May 13, 2020 in Jenkins by Robindeniel (20.8k points)
+1 vote
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance (2.8k points)
...