add build and deploy steps
This commit is contained in:
		
							parent
							
								
									b6d7b2eb48
								
							
						
					
					
						commit
						17539eca48
					
				| 
						 | 
					@ -2,9 +2,30 @@ pipeline {
 | 
				
			||||||
    agent any
 | 
					    agent any
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    stages {
 | 
					    stages {
 | 
				
			||||||
        stage('Do nothing') {
 | 
					        stage('build'){
 | 
				
			||||||
            steps {
 | 
					            steps{
 | 
				
			||||||
                sh '/bin/true'
 | 
					                sh 'npm run build'
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        stage('deploy'){
 | 
				
			||||||
 | 
					            steps{
 | 
				
			||||||
 | 
					                sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos',
 | 
				
			||||||
 | 
					                transfers: [sshTransfer(cleanRemote: false,
 | 
				
			||||||
 | 
					                excludes: '',
 | 
				
			||||||
 | 
					                execCommand: '',
 | 
				
			||||||
 | 
					                execTimeout: 120000,
 | 
				
			||||||
 | 
					                flatten: false,
 | 
				
			||||||
 | 
					                makeEmptyDirs: false,
 | 
				
			||||||
 | 
					                noDefaultExcludes: false,
 | 
				
			||||||
 | 
					                patternSeparator: '[,
 | 
				
			||||||
 | 
					                ]+',
 | 
				
			||||||
 | 
					                remoteDirectory: '/home/jenkins/ssh-uploads/calculator',
 | 
				
			||||||
 | 
					                remoteDirectorySDF: false,
 | 
				
			||||||
 | 
					                removePrefix: '',
 | 
				
			||||||
 | 
					                sourceFiles: 'dist')],
 | 
				
			||||||
 | 
					                usePromotionTimestamp: false,
 | 
				
			||||||
 | 
					                useWorkspaceInPromotion: false,
 | 
				
			||||||
 | 
					                verbose: false)])
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue