pipeline {
    agent none
    stages {
        stage('Test') {
			steps {
				script {
					def testStages = [:]
					testStages['stage 1'] = createStage()
					testStages['stage 2'] = createStage()
					testStages['stage 3'] = createStage()
					parallel testStages
				}
			}
        }
    }
}

def createStage() {
	return {
		node(label: 'small') {
			echo 'hello'
		}
	}
}