in Jenkins by
Give any simple example of Jenkins script.

1 Answer

0 votes
by
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'

             }

            }

         }

}
...