Update 'Jenkinsfile'
This commit is contained in:
parent
07c9ce2467
commit
72817223cf
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -7,6 +7,16 @@ remote.allowAnyHosts = true
|
||||
remote.agent = false
|
||||
remote.logLevel = 'INFO'
|
||||
|
||||
def build(text) {
|
||||
sh'''
|
||||
printenv
|
||||
echo $text
|
||||
echo $WORKSPACE
|
||||
ls -al $WORKSPACE
|
||||
find /var/jenkins_home -name "Jenkinsfile"
|
||||
'''
|
||||
}
|
||||
|
||||
pipeline{
|
||||
agent { node{ label'master' }}
|
||||
options {
|
||||
@ -30,12 +40,7 @@ pipeline{
|
||||
stage('Test')
|
||||
{
|
||||
steps {
|
||||
sh '''
|
||||
printenv
|
||||
echo $WORKSPACE
|
||||
ls -al $WORKSPACE
|
||||
find /var/jenkins_home -name "Jenkinsfile"
|
||||
'''
|
||||
build "Hello world"
|
||||
}
|
||||
}
|
||||
stage('Remote SSH') {
|
||||
|
Loading…
Reference in New Issue
Block a user