Test Neutral Pipeline #6
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Neutral/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Neutral/pipeline/head This commit looks good
				
			This commit is contained in:
		
							
								
								
									
										20
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@@ -16,20 +16,22 @@ pipeline {
 | 
				
			|||||||
        stage('[Neutral] - Deploy') {
 | 
					        stage('[Neutral] - Deploy') {
 | 
				
			||||||
            steps {
 | 
					            steps {
 | 
				
			||||||
                script {
 | 
					                script {
 | 
				
			||||||
                    def userInput = input(
 | 
					                    def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Yes', 
 | 
				
			||||||
                    id: 'userInput', message: 'Enter path of test reports:?', 
 | 
					                        parameters: [booleanParam(defaultValue: true, 
 | 
				
			||||||
                    parameters: [
 | 
					                        description: 'Confirmation',name: 'Oui')])
 | 
				
			||||||
                    [$class: 'TextParameterDefinition', defaultValue: 'None', description: 'Path of config file', name: 'Config'],
 | 
					                    if(doesJavaRock == true) {
 | 
				
			||||||
                    [$class: 'TextParameterDefinition', defaultValue: 'None', description: 'Test Info file', name: 'Test']
 | 
					 | 
				
			||||||
                    ])
 | 
					 | 
				
			||||||
                    echo ("IQA Sheet Path: "+userInput['Config'])
 | 
					 | 
				
			||||||
                    echo ("Test Info file path: "+userInput['Test'])
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                        echo "[Neutral-Deploy] - Deploy Stage"
 | 
					                        echo "[Neutral-Deploy] - Deploy Stage"
 | 
				
			||||||
                        sh "ssh raphix@raphix.fr sudo apt update -y"
 | 
					                        sh "ssh raphix@raphix.fr sudo apt update -y"
 | 
				
			||||||
                        sh "ssh raphix@raphix.fr sudo apt upgrade -y"
 | 
					                        sh "ssh raphix@raphix.fr sudo apt upgrade -y"
 | 
				
			||||||
                        sh "ssh raphix@raphix.fr sudo -S -u gitlab-ci /home/gitlab-ci/neutral_deploy.sh"
 | 
					                        sh "ssh raphix@raphix.fr sudo -S -u gitlab-ci /home/gitlab-ci/neutral_deploy.sh"
 | 
				
			||||||
 | 
					                    } else {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                        echo "aborted"
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                              
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user