Advertisement
Guest User

Nexus plugin in pipeline

a guest
May 2nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.79 KB | None | 0 0
  1. pipeline {
  2.     agent any
  3.     stages {
  4.         stage('Install') {
  5.              steps {
  6.                 sh 'mvn clean install -DskipTests'
  7.             }
  8.         }
  9.  
  10.         stage('Upload artifact') {
  11.            steps {
  12.                nexusArtifactUploader artifacts: [[artifactId: 'add-project-internship-2018', classifier: '', file: 'add-project-internship-2018-0.0.1-SNAPSHOT.war', type: 'war']],
  13.                credentialsId: '9d977555-9613-4485-8c0c-a25b72a316e3',
  14.                groupId: 'com.endava',
  15.                nexusUrl: 'nexus.endava.net/repository/Intens_2018_firs/',
  16.                nexusVersion: 'nexus3',
  17.                protocol: 'http',
  18.                repository: 'Intens_2018_firs',
  19.                version: '0.0.1'
  20.            }
  21.         }    
  22.            
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement