Update Jenkinsfile
diff --git a/Jenkinsfile b/Jenkinsfile
index 5c1eb5b..2865b83 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,31 +1,14 @@
-node {

-	stage ('test'){

-		sh 'ls -ltr'

-		checkout scm

-		sh 'ls -ltr'

-		echo 'inside jenkins'

-		sh 'whoami'

-		sh 'docker images'

-		//def customImage = docker.build("pact-demo:${env.BUILD_ID}")

-		sh 'docker images'

-		//print "$customImage"

-		//echo customImage

-		/*customImage.inside {

-			sh 'ls -ltr'

-			sh 'pwd'

-			}*/

-	

-	/*docker.image("pact-demo:${env.BUILD_ID}").inside {

-		stage("inside container") {

-			sh "pwd"

-			sh "ls -ltr"          

-		}

-	}*/

-	docker.build("pact-demo:${env.BUILD_ID}").inside {

-	 sh 'ls -ltr'

-	 sh 'pwd'

-  }

-  }

-}

 

+pipeline {

+    agent none 

+    stages {

+        stage('Example Build') {

+            agent { docker "rest-test" } 

+            steps {

+                sh 'ls -ltr'

+            }

+        }

+       

+    }

+}