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.agent = false
|
||||||
remote.logLevel = 'INFO'
|
remote.logLevel = 'INFO'
|
||||||
|
|
||||||
|
def build(text) {
|
||||||
|
sh'''
|
||||||
|
printenv
|
||||||
|
echo $text
|
||||||
|
echo $WORKSPACE
|
||||||
|
ls -al $WORKSPACE
|
||||||
|
find /var/jenkins_home -name "Jenkinsfile"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
|
||||||
pipeline{
|
pipeline{
|
||||||
agent { node{ label'master' }}
|
agent { node{ label'master' }}
|
||||||
options {
|
options {
|
||||||
@ -30,12 +40,7 @@ pipeline{
|
|||||||
stage('Test')
|
stage('Test')
|
||||||
{
|
{
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
build "Hello world"
|
||||||
printenv
|
|
||||||
echo $WORKSPACE
|
|
||||||
ls -al $WORKSPACE
|
|
||||||
find /var/jenkins_home -name "Jenkinsfile"
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Remote SSH') {
|
stage('Remote SSH') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user