Commit e568deb4 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

modify jenkinsfile

parent f6a3e390
Loading
Loading
Loading
Loading
+8 −21
Original line number Diff line number Diff line
@@ -8,18 +8,16 @@ pipeline {
    options {
        timeout(time: 30, unit: 'MINUTES')
    }
    environment {
    /*environment {
		branch = 'continuous-integration'
		scmUrl = 'https://github.com/Telefonica/pesp_capif_backoffice_frontend_v2.git'
	}	
	}*/	
	
    stages {
        stage('build') {
        stage ('Dependecies') {
            steps {
                echo 'Installing Dependencies'
                sh 'yarn install'
				//echo 'Building NextJS App'
				//sh 'node_modules/next/dist/bin/next build'
            }
        }
        stage ('Build') {
@@ -29,26 +27,15 @@ pipeline {
            }
        }
    }

    /*stages {

        stage ('Build') {
    stage('Artifact') {
      steps {
                echo 'build'
                sh 'yarn build'
        archiveArtifacts artifacts: '**/build/*'
      }
    }
    }*/

    post {
        always {
            echo "Done"
            // emailext body: '''${SCRIPT, template="groovy-html.template"}''',
            //     mimeType: 'text/html',
            //     subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}",
            //     from: 'jenkins-futme@tid.es',
            //     to: "futmedia.tid@telefonica.com",
            //     replyTo: "no-reply@tid.es",
            //     recipientProviders: [[$class: 'CulpritsRecipientProvider']]
        }
    }
}