Jan 17, 2020 in Jenkins
Q: Give any simple example of Jenkins script.

1 Answer

0 votes
Jan 17, 2020
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
May 13, 2020 in Jenkins
  • #jenkins-pipeline-example
  • #jenkins-pipeline-code
0 votes
Apr 28 in Jenkins
0 votes
May 29 in Data Science
...