diff --git a/Jenkinsfile b/Jenkinsfile index 5947021b..a14d0d95 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,11 @@ pipeline { - agent { label 'linux' } + agent any options { buildDiscarder(logRotator(numToKeepStr: '5')) } environment { CI = true - ARTIFACTORY_ACCESS_TOKEN = credentials('artifactory-access-token') + ARTIFACTORY_ACCESS_TOKEN = credentials('jfrog-access') } stages { stage('Build') { @@ -21,8 +21,8 @@ pipeline { } } steps { - sh 'jfrog rt upload --url http://192.168.1.230:8082/artifactory/ --access-token ${ARTIFACTORY_ACCESS_TOKEN} target/demo-0.0.1-SNAPSHOT.jar java-web-app/' + sh 'jfrog rt upload --url http://192.168.233.135:8082/artifactory/ --access-token ${ARTIFACTORY_ACCESS_TOKEN} target/demo-0.0.1-SNAPSHOT.jar java-web-app/' } } } -} \ No newline at end of file +}