Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
topic: HTML Hello World
topic: HTML Hello World for test
languages:
- HTML
products:
Expand Down
78 changes: 78 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
pipeline {
agent {
node {

label 'master'

}
}

// to add maven
tools {
maven 'maven'
}

options {
timestamps()

}
environment {

NABIL = "abcxyz1"

}

stages {
stage('Print variable') {
steps {
sh 'echo $NABIL'
}
}

stage('Checkout from github'){

steps {

script {

currentBuild.displayName = "Maven test project #$BUILD_NUMBER"

}

sh 'echo "build starting now"'

checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'GIT', submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'mrahman@cynerge.com', url: 'https://github.com/fuz-rahm/simple-java-maven-app.git']]])
}
}

stage('Check downloaded files') {
steps{
sh 'ls'
}
}

stage('Run unit test') {
steps{
sh 'mvn clean verify'
}
}

stage('Run Pa11y') {
steps{
sh 'mvn clean verify'
}
}
}
}
© 2019 GitHub, Inc.
Terms
Privacy
Security
Status
Help
Contact GitHub
Pricing
API
Training
Blog
About