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'

             }

            }

         }

}

Related questions

+1 vote
asked May 13, 2020 in Jenkins by Robindeniel
  • #jenkins-pipeline-example
  • #jenkins-pipeline-code
0 votes
asked Apr 28, 2021 in Jenkins by Robindeniel
0 votes
asked Sep 9, 2021 in AWS by sharadyadav1986
0 votes
asked Oct 10, 2021 in Full Stack Developer by rajeshsharma
...