diff --git a/Jenkinsfile b/Jenkinsfile index 2c3593d..c6a5746 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,56 +1,14 @@ -pipeline { - agent any - stages { - stage('Build') { - parallel { - stage('Build') { - steps { - echo 'Building the .NET Core application' - } - } - - stage('Test') { - steps { - echo 'Testing the application' - echo "Get the DriverPath ${ChromeDriverPath}" - } - } - - stage('Test Log') { - environment { - LocalVariable = 'HelloLocal' - } - steps { - writeFile(file: 'LogTestFile.txt', text: "This is the ChromeDriverPath ${ChromeDriverPath} and localvariable Value ${LocalVariable}") - } - } - - } +pipeline{ + agent{ + label 'slave' } - - stage('Deploy') { - when { - branch 'master' - } - parallel { - stage('Deploy') { - steps { - input(message: 'Do you want to Deployment ?', id: 'OK') - echo 'Deploying the app in IIS server' - } + stages{ + stage('Hello'){ + steps{ + sh 'java -version' + echo 'Get working directory' + sh 'pwd' + } } - - stage('Artifacts') { - steps { - archiveArtifacts 'LogTestFile.txt' - } - } - - } } - - } - environment { - ChromeDriverPath = 'C:\\Driver\\Path\\ChromeDriver.exe' - } -} \ No newline at end of file + }