Skip to content

Commit

Permalink
test: add sleep
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <[email protected]>
  • Loading branch information
heurtematte committed Jul 1, 2024
1 parent f76c126 commit b602576
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ pipeline {
sh 'mvn clean verify -Prelease -B'
}
}
stage('Deploy') {
steps {
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh """
echo "Deploying..."
#check if dir already exists
if ssh ${LOGIN} test -d ${SITE_DIR}; then
ssh ${LOGIN} rm -rf ${SITE_DIR}
fi
ssh ${login} mkdir -p ${SITE_DIR}
scp -r org.eclipse.cbi.tycho.example.updatesite/target/repository ${LOGIN}:${SITE_DIR}
"""
}
}
}
// stage('Deploy') {
// steps {
// sshagent(['projects-storage.eclipse.org-bot-ssh']) {
// sh """
// echo "Deploying..."
// #check if dir already exists
// if ssh ${LOGIN} test -d ${SITE_DIR}; then
// ssh ${LOGIN} rm -rf ${SITE_DIR}
// fi
// ssh ${login} mkdir -p ${SITE_DIR}
// scp -r org.eclipse.cbi.tycho.example.updatesite/target/repository ${LOGIN}:${SITE_DIR}
// """
// }
// }
// }
stage('ossrh') {
steps {
sh 'mvn deploy -Possrh -B'
sh 'mvn -X deploy -Possrh -B'
}
}
}
Expand Down

0 comments on commit b602576

Please sign in to comment.